Skip to content

Commit c108044

Browse files
committed
Try to enable LLAVA_BUILD in build-wheels-cuda-linux.yml
1 parent 786d15c commit c108044

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/build-wheels-cuda-linux.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Wheels for Linux # Workflow name
1+
name: Build Wheels(CUDA) for Linux # Workflow name
22

33
on:
44
workflow_dispatch: # Manual trigger
@@ -51,18 +51,21 @@ jobs:
5151
- run: nvcc -V
5252

5353
- name: Build Wheel With Cmake # Main build step: configures and builds the wheel
54+
env:
55+
LD_LIBRARY_PATH: "/usr/local/cuda/lib64:/usr/local/cuda/compat:/usr/lib/x86_64-linux-gnu:${LD_LIBRARY_PATH}"
56+
VERBOSE: 1 # Enable verbose build output
57+
CUDA_HOME: "/usr/local/cuda/" # Set CUDA_HOME
58+
CUDA_PATH: "${PATH}"
59+
CUDA_TOOLKIT_ROOT_DIR: "/usr/local/cuda/" # Set CUDA_TOOLKIT_ROOT_DIR
5460
run: |
5561
echo "VERBOSE=1" >> $GITHUB_ENV # Enable verbose build output for troubleshooting
56-
57-
echo "CUDA_HOME=/usr/local/cuda/" >> $GITHUB_ENV
58-
echo "CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/" >> $GITHUB_ENV
59-
echo "CUDA_PATH = ${PATH}" >> $GITHUB_ENV
60-
echo "LD_LIBRARY_PATH = '${PATH}:${LD_LIBRARY_PATH}'"
62+
find /usr/ -name 'libcuda.so.*'
63+
echo $LD_LIBRARY_PATH
6164
6265
# Add project-specific and feature flags
6366
CMAKE_ARGS="-DGGML_CUDA=on -DCMAKE_CUDA_ARCHITECTURES='80-real;86-real;89-real'"
6467
CMAKE_ARGS="-DGGML_CUDA_FORCE_MMQ=ON ${CMAKE_ARGS}"
65-
CMAKE_ARGS="${CMAKE_ARGS} -DLLAMA_CURL=ON -DLLAVA_BUILD=OFF"
68+
CMAKE_ARGS="${CMAKE_ARGS} -DLLAMA_CURL=ON"
6669
6770
if [ "${AVXVER}" = "AVX" ]; then
6871
CMAKE_ARGS="${CMAKE_ARGS} -DGGML_AVX2=off -DGGML_FMA=off -DGGML_F16C=off"
@@ -83,7 +86,7 @@ jobs:
8386
8487
# Run the Python build command to generate the wheel
8588
uv pip install build setuptools wheel packaging
86-
uv pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
89+
# uv pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
8790
CMAKE_ARGS=${CMAKE_ARGS} uv build --wheel
8891
8992
# --- Post-build steps to get info for release tag ---

0 commit comments

Comments
 (0)