The packaged version of the libc library does not depend on the CUDA
installation because it only uses clang and emits LLVM-IR. However,
for testing we directly need the CUDA toolkit to emit and execute the
files. This patch explicitly passes --cuda-path to the relevant
compilations for NVPTX testing.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/cmake/modules/prepare_libc_gpu_build.cmake | ||
---|---|---|
105 | Nit: .. may potentially backfire if we're operating on a tree of symlinks, depending on whether cmake would actually traverse the filesystem, or process the ,, itself and just stripping one path component. It may be safer to calculate absolute path to CUDAToolkit_BIN_DIR and then use get_filename_component(DIRECTORY) on it. |
Nit: .. may potentially backfire if we're operating on a tree of symlinks, depending on whether cmake would actually traverse the filesystem, or process the ,, itself and just stripping one path component.
It may be safer to calculate absolute path to CUDAToolkit_BIN_DIR and then use get_filename_component(DIRECTORY) on it.