File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ jobs:
143143
144144 echo '=== Configuring build with Ninja ==='
145145 export LIBRARY_PATH="/usr/local/cuda/lib64/stubs${LIBRARY_PATH:+:$LIBRARY_PATH}"
146-
146+
147147 ln -sf /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
148148 cmake -B build -S . \
149149 -G Ninja \
@@ -153,7 +153,9 @@ jobs:
153153 -DBUILD_SHARED_LIBS=ON \
154154 -DGGML_NATIVE=OFF \
155155 -DLLAMA_BUILD_TESTS=OFF \
156- -DLLAMA_BUILD_EXAMPLES=OFF
156+ -DLLAMA_BUILD_EXAMPLES=OFF \
157+ -DCMAKE_EXE_LINKER_FLAGS='-Wl,-rpath-link,/usr/local/cuda/lib64/stubs' \
158+ -DCMAKE_SHARED_LINKER_FLAGS='-Wl,-rpath-link,/usr/local/cuda/lib64/stubs'
157159
158160 echo '=== Building with Ninja (parallel: all cores) ==='
159161 cmake --build build --config Release -j\$(nproc)
You can’t perform that action at this time.
0 commit comments