Skip to content

Commit 27a1574

Browse files
committed
CI debug
1 parent c1c54e7 commit 27a1574

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

packaging/pre_build_script.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ set -ex
88
# CMake helpers.
99
conda 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
1813
echo "[NVCUVID-SEARCH] === Searching for nvcuvid library ==="

src/torchcodec/_core/CMakeLists.txt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)