>>101657884
I install GCC with this inside conda:
conda install 'gcc>=12.0.0,<13.0.0' 'gxx>=12.0.0,<13.0.0' -c conda-forge
And CUDA with this:
conda install cuda cuda-python cuda-libraries-dev cuda-nvcc cuda-nvtx cuda-cupti -c nvidia/label/cuda-12.4.1
Because Archlinux installs another version of CUDA to /opt, I have to patch vLLM with this so CMake doesn't pick that one up and uses the Conda one instead. Check in the console which version is trying to use.
diff --git a/setup.py b/setup.py
index 72ef26f1..6b571fdf 100644
--- a/setup.py
+++ b/setup.py
@@ -159,6 +159,7 @@ class cmake_build_ext(build_ext):
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={}'.format(outdir),
'-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY={}'.format(self.build_temp),
'-DVLLM_TARGET_DEVICE={}'.format(VLLM_TARGET_DEVICE),
+ '-DCUDA_TOOLKIT_ROOT_DIR={}'.format(os.environ["CUDA_HOME"]),
]
verbose = envs.VERBOSE
And then it works for me.