@@ -11,6 +11,29 @@ conda install -y pybind11 -c conda-forge
1111# Search for nvcuvid library in various locations for debugging CI build issues
1212echo " [NVCUVID-SEARCH] === Searching for nvcuvid library ==="
1313
14+ # First, let's find where CUDA nppi libraries are located
15+ echo " [NVCUVID-SEARCH] Looking for CUDA nppi libraries to find potential nvcuvid location..."
16+ NPPI_LOCATIONS=()
17+
18+ # Search for CUDA nppi libraries that CMake should find
19+ for nppi_lib in " libnppi.so*" " libnppicc.so*" " nppi.so*" " nppicc.so*" " libnppi*" " libnppicc*" ; do
20+ found_nppi=$( find /usr -name " $nppi_lib " 2> /dev/null | head -5)
21+ if [ -n " $found_nppi " ]; then
22+ echo " [NVCUVID-SEARCH] Found CUDA nppi library: $found_nppi "
23+ while IFS= read -r lib_path; do
24+ lib_dir=$( dirname " $lib_path " )
25+ if [[ ! " ${NPPI_LOCATIONS[@]} " =~ " $lib_dir " ]]; then
26+ NPPI_LOCATIONS+=(" $lib_dir " )
27+ fi
28+ done <<< " $found_nppi"
29+ fi
30+ done
31+
32+ # Add these locations to our search paths
33+ for nppi_dir in " ${NPPI_LOCATIONS[@]} " ; do
34+ echo " [NVCUVID-SEARCH] Adding CUDA library directory to search: $nppi_dir "
35+ done
36+
1437# Standard library search paths
1538SEARCH_PATHS=(
1639 " /usr/lib"
@@ -27,6 +50,11 @@ SEARCH_PATHS=(
2750 " /usr/local/cuda-*/lib"
2851)
2952
53+ # Add the CUDA nppi library directories to our search paths
54+ for nppi_dir in " ${NPPI_LOCATIONS[@]} " ; do
55+ SEARCH_PATHS+=(" $nppi_dir " )
56+ done
57+
3058# Library name variations to search for
3159LIB_PATTERNS=(
3260 " libnvcuvid.so*"
0 commit comments