Skip to content

Commit 0adb516

Browse files
committed
Stubs
1 parent ace157d commit 0adb516

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-cuda.yml

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

0 commit comments

Comments
 (0)