-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] build.sh cannot set CUDAToolkit_INCLUDE_DIR From Bare Metal: https://docs.rapids.ai/api/cuspatial/stable/developer_guide/build/ #1493
Comments
Some progress:-) I have now got ./build.sh to run ok as far as In summary to do this I used: setenv PATH /opt/cuda/cuda-12.6/bin/:"$PATH" unzip cuspatial-branch-24.12.zip (With just one job, -j1, building and installing cuspatial took about 3.5 hours.) |
Hi @wblangdon! Thanks for submitting this issue - our team has been notified and we'll get back to you as soon as we can! |
@wblangdon You should be able to pass ./build.sh clean libcuspatial cuspatial tests '--cmake-args="-DCUDAToolkit_ROOT=/opt/cuda/cuda-12.6"' |
Thank you for your help. Apologies for not following your command line exactly, will try again, but for some reason it did not fully show up this morning (firefox 84.0). Best wishes |
ps: I have tried copying the command line and it fails saying it cannot find cuda_runtime.h and cublas_v2.h I also tried ./build.sh clean libcuspatial cuspatial tests '--cmake-args="-DCUDAToolkit_ROOT=/opt/cuda/cuda-12.6/targets/x86_64-linux/include"' which also fails. All being well I have uploaded a 3rd script output file, showing both.script_paul_taylor_3b.txt Best wishes |
@wblangdon Thanks, that's helpful. It appears CMake is searching for $ stat /usr/local/cuda/include
File: /usr/local/cuda/include -> targets/x86_64-linux/include
Size: 28 Blocks: 0 IO Block: 4096 symbolic link Does your installation have a symlink ./build.sh clean libcuspatial cuspatial tests '--cmake-args="-DCUDAToolkit_ROOT=/opt/cuda/cuda-12.6 -DCUDAToolkit_INCLUDE_DIR=/opt/cuda/cuda-12.6/targets/x86_64-linux/include"' |
Dear Paul, Ahha !! In our /opt/cuda/cuda-12.6 include is a subdirectory Interestingly there is a symbolic link lib64 -> targets/x86_64-linux/lib I am afraid I do not have root access. Some progress with your suggestion for --cmake-args Thanks again pps: |
Quick reply some progress: hope to send full update next week
Message ID: ***@***.***
|
Last week our technical support added the missing symbolic link Even though I used Although it seems to have compiled and linked the tests ok, |
I'll let @trxcllnt look into the pip errors. |
Many thanks for your help. |
Relevant error:
The script output you included doesn't even have any calls that use |
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
The text was updated successfully, but these errors were encountered: