I cannot run ./build.sh libcuspatial cuspatial tests
cuspatial-branch-24.12/build.sh fails to find cuda_runtime.h and cublas_v2.h
Terminates with message "Configuring incomplete, errors occurred!" and status 1
CUDA 12.6 (Driver Version: 560.35.03) installed by others (I have no root access).
cuda_runtime.h and cublas_v2.h are both in /opt/cuda/cuda-12.6/targets/x86_64-linux/include
I am using tcsh
setenv CUDAToolkit_INCLUDE_DIR is ignored by ./build.sh
With both tcsh and bash I cannot find a syntax which allows me to
pass CUDAToolkit_INCLUDE_DIR as an argument of ./build.sh
I can set global environment variable EXTRA_CMAKE_ARGS before running ./build.sh
if I set EXTRA_CMAKE_ARGS -DCUDAToolkit_INCLUDE_DIR=/opt/cuda/cuda-12.6/targets/x86_64-linux/include
./build.sh does run cmake and gets as far as "-- PROJ_LIBRARIES = proj"
and then cmake fails with
"CMake Error at build/_deps/proj-src/cmake/CMakeLists.txt:110 (file):
file RELATIVE_PATH called with incorrect number of arguments"
cmake version 3.26.5
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:10:22_PDT_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0
./build.sh libcuspatial cuspatial tests <== Fails
-- Unable to find cuda_runtime.h in "/opt/cuda/cuda-12.6/include" for CUDAToolkit_INCLUDE_DIR.
-- Unable to find cublas_v2.h in either "" or "/opt/math_libs/include"
Try to set CUDAToolkit_INCLUDE_DIR
Most successful is:
setenv EXTRA_CMAKE_ARGS "-DCUDAToolkit_INCLUDE_DIR=/opt/cuda/cuda-12.6/targets/x86_64-linux/include"
./build.sh libcuspatial cuspatial tests <== Fails
-- Configuring proj library:
-- ENABLE_IPO = OFF
-- PROJ_CORE_TARGET_OUTPUT_NAME = proj
-- BUILD_SHARED_LIBS = ON
-- PROJ_LIBRARIES = proj
CMake Error at build/_deps/proj-src/cmake/CMakeLists.txt:110 (file):
file RELATIVE_PATH called with incorrect number of arguments
Expected behavior
I expected ./build.sh to compile libcuspatial cuspatial and cuspatial's tests
Screenshots
./build.sh generates many lines of output. I have copy+pasted what
seems to be the most relevant ones above. I can send more if it would help.
Desktop (please complete the following information):
OS: Linux, Rocky 9
Version 24.12
Smartphone (please complete the following information):
n/a
I cannot run ./build.sh libcuspatial cuspatial tests
cuspatial-branch-24.12/build.sh fails to find cuda_runtime.h and cublas_v2.h Terminates with message "Configuring incomplete, errors occurred!" and status 1
CUDA 12.6 (Driver Version: 560.35.03) installed by others (I have no root access). cuda_runtime.h and cublas_v2.h are both in /opt/cuda/cuda-12.6/targets/x86_64-linux/include
I am using tcsh
setenv CUDAToolkit_INCLUDE_DIR is ignored by ./build.sh
With both tcsh and bash I cannot find a syntax which allows me to pass CUDAToolkit_INCLUDE_DIR as an argument of ./build.sh
I can set global environment variable EXTRA_CMAKE_ARGS before running ./build.sh if I set EXTRA_CMAKE_ARGS -DCUDAToolkit_INCLUDE_DIR=/opt/cuda/cuda-12.6/targets/x86_64-linux/include ./build.sh does run cmake and gets as far as "-- PROJ_LIBRARIES = proj" and then cmake fails with "CMake Error at build/_deps/proj-src/cmake/CMakeLists.txt:110 (file): file RELATIVE_PATH called with incorrect number of arguments"
cmake version 3.26.5
nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Built on Wed_Aug_14_10:10:22_PDT_2024 Cuda compilation tools, release 12.6, V12.6.68 Build cuda_12.6.r12.6/compiler.34714021_0
$PATH /opt/cuda/cuda-12.6/bin/:.... $LD_LIBRARY_PATH /opt/cuda/cuda-12.6/lib64:....
To Reproduce download https://github.com/rapidsai/cuspatial/archive/refs/heads/branch-24.12.zip unzip branch-24.12.zip mv cuspatial-branch-24.12.zip cuspatial cd cuspatial check $PATH and $LD_LIBRARY_PATH
./build.sh libcuspatial cuspatial tests <== Fails -- Unable to find cuda_runtime.h in "/opt/cuda/cuda-12.6/include" for CUDAToolkit_INCLUDE_DIR. -- Unable to find cublas_v2.h in either "" or "/opt/math_libs/include"
Try to set CUDAToolkit_INCLUDE_DIR Most successful is: setenv EXTRA_CMAKE_ARGS "-DCUDAToolkit_INCLUDE_DIR=/opt/cuda/cuda-12.6/targets/x86_64-linux/include" ./build.sh libcuspatial cuspatial tests <== Fails -- Configuring proj library: -- ENABLE_IPO = OFF -- PROJ_CORE_TARGET_OUTPUT_NAME = proj -- BUILD_SHARED_LIBS = ON -- PROJ_LIBRARIES = proj CMake Error at build/_deps/proj-src/cmake/CMakeLists.txt:110 (file): file RELATIVE_PATH called with incorrect number of arguments
Expected behavior I expected ./build.sh to compile libcuspatial cuspatial and cuspatial's tests
Screenshots ./build.sh generates many lines of output. I have copy+pasted what seems to be the most relevant ones above. I can send more if it would help.
Desktop (please complete the following information):
Smartphone (please complete the following information): n/a
Additional context n/a