File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed
Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 88# CMake helpers.
99conda install -y pybind11 -c conda-forge
1010
11- # Need to create a symlink for libnvcuvid.so.1 to libnvcuvid.so becuase that's
12- # what Cmake is looking for and it doesn't exist by default. This is pretty
13- # brittle.
14- sudo ln -s /usr/lib64/libnvcuvid.so.1 /usr/lib64/libnvcuvid.so
15-
1611
1712# Search for nvcuvid library in various locations for debugging CI build issues
1813echo " [NVCUVID-SEARCH] === Searching for nvcuvid library ==="
Original file line number Diff line number Diff line change @@ -112,8 +112,26 @@ function(make_torchcodec_libraries
112112 ${CUDA_nppicc_LIBRARY}
113113 )
114114
115- find_library (NVCUVID_LIBRARY NAMES nvcuvid REQUIRED)
116- message (STATUS "Found NVCUVID library: ${NVCUVID_LIBRARY} " )
115+ # Try the normal way first
116+ find_library (NVCUVID_LIBRARY NAMES nvcuvid)
117+
118+ # If not found, try with version suffix
119+ if (NOT NVCUVID_LIBRARY)
120+ find_library (NVCUVID_LIBRARY NAMES nvcuvid.1 PATHS /usr/lib64 /usr/lib)
121+ endif ()
122+
123+ # Or specify the full path directly
124+ if (NOT NVCUVID_LIBRARY)
125+ set (NVCUVID_LIBRARY "/usr/lib64/libnvcuvid.so.1" )
126+ endif ()
127+
128+ if (NVCUVID_LIBRARY)
129+ message (STATUS "Found NVCUVID: ${NVCUVID_LIBRARY} " )
130+ else ()
131+ message (FATAL_ERROR "Could not find NVCUVID library" )
132+ endif ()
133+ # find_library(NVCUVID_LIBRARY NAMES nvcuvid REQUIRED)
134+ # message(STATUS "Found NVCUVID library: ${NVCUVID_LIBRARY}")
117135
118136 # Add CUDA Driver library (needed for cuCtxGetCurrent, etc.)
119137 find_library (CUDA_DRIVER_LIBRARY NAMES cuda REQUIRED)
You can’t perform that action at this time.
0 commit comments