-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add new activation script and/or run dependency? #46
Comments
For my first proposal, I'm worrying that we need to resolve conda-forge/nvcc-feedstock#25 (comment) first. Right, @jakirkham? |
If we think that is needed, I suppose we could just add them here independently of how that issue is resolved. That said, it seems like 2 is the lighter weight of these proposals. |
John, I feel I could be wrong. Am I right that the CUDA headers aren't included in either |
They are not. Why do you ask? My guess is they are not redistributable according to the license, but am not sure. @kkraus14, do you know? FWIW the headers we use during the build come from the Docker image. |
The headers are not permitted for redistribution per the EULA: https://docs.nvidia.com/cuda/eula/index.html#attachment-a |
I see, thanks for confirming, John & Keith! I am asking because this CuPy test is failing with CF's $ pytest cupy_tests/core_tests/test_raw.py
(...omit output...)
> raise cex
E cupy.cuda.compiler.CompileException: `nvcc` command returns non-zero exit status.
E command: ['/home/leofang/miniconda3/envs/CF_cupy_test2/bin/nvcc', '-gencode=arch=compute_70,code=sm_70', '--ptx', '-I/home/leofang/miniconda3/envs/CF_cupy_test2/lib/python3.7/site-packages/cupy/core/include', '-I /home/leofang/miniconda3/envs/CF_cupy_test2/lib/python3.7/site-packages/cupy/core/include/cupy/_cuda/cuda-10.0', '-I /usr/local/cuda/include', '-ftz=true', '/tmp/tmp6r4ykd15/preprocess.cu']
E return-code: 1
E stdout/stderr:
E cc1plus: fatal error: cuda_runtime.h: No such file or directory
E compilation terminated.
../../miniconda3/envs/CF_cupy_test2/lib/python3.7/site-packages/cupy/cuda/compiler.py:198: CompileException
======================================================================= short test summary info =======================================================================
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_0_{backend='nvrtc'}::test_dynamical_parallelism - RuntimeError: Parameterized test failed.
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_basic - cupy.cuda.compiler.CompileException: `nvcc` command returns non-zero exit s...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_compiler_flag - cupy.cuda.compiler.CompileException: `nvcc` command returns non-zer...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_cuDoubleComplex - cupy.cuda.compiler.CompileException: `nvcc` command returns non-z...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_cuFloatComplex - cupy.cuda.compiler.CompileException: `nvcc` command returns non-ze...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_dynamical_parallelism - cupy.cuda.compiler.CompileException: `nvcc` command returns...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_dynamical_parallelism_compile_failure - cupy.cuda.compiler.CompileException: `nvcc`...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_get_function_failure - cupy.cuda.compiler.CompileException: `nvcc` command returns ...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_invalid_compiler_flag - cupy.cuda.compiler.CompileException: `nvcc` command returns...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_kernel_attributes - cupy.cuda.compiler.CompileException: `nvcc` command returns non...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_module - cupy.cuda.compiler.CompileException: `nvcc` command returns non-zero exit ...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_module_both_code_and_path - cupy.cuda.compiler.CompileException: `nvcc` command ret...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_module_load_failure - cupy.cuda.compiler.CompileException: `nvcc` command returns n...
FAILED cupy_tests/core_tests/test_raw.py::TestRaw_param_1_{backend='nvcc'}::test_module_neither_code_nor_path - cupy.cuda.compiler.CompileException: `nvcc` command ...
=================================================================== 14 failed, 12 passed in 11.07s ==================================================================== What these tests do is to use (To reproduce this, you need to mask your @jakirkham It seems patching However, your |
Interesting I feel like I'm learning a lot about how CuPy works internally 😄 FWIW we do add the headers to the compiler flags. Though it sounds like you are saying CuPy doesn't use these, is that correct? 😉 |
Haha, sorry for making you learn, John 😅 btw it's not that internal. The backend thing is documented. They didn't advertise it, though. I meant CuPy would likely find the CUDA path and add |
Continuing the discussion from AnacondaRecipes/cudatoolkit-feedstock#5 (comment) and cupy/cupy#3222 (comment):
nvcc
can exist in a conda env where CuPy is installedCUDA_PATH
for CuPy to look up where CUDA is in the conda env.The text was updated successfully, but these errors were encountered: