Closed lw closed 5 months ago
Oh, I believe you are seeing a mismatch between installed driver and the toolkit you are using.
Looking at your nvidia-smi
output you are running with
CUDA Version: 12.2
However, you are compiling with nvcc 12.3
Cuda compilation tools, release 12.3, V12.3.107
Now the issue is that we are enabling features based on what the compiler supports, which is the only information we have at compiletime. In this case, the 12.2 driver only supports PTX ISA 8.2, which does not include those instructions.
However, your toolkit is providing PTX ISA 8.3 which does so and you are compiling against a target that also could use them.
Long story short, I believe you need to update you driver on that machine
@lw also to be sure, can you verify that you also properly added the nv
subfolder from the libcudacxx folder to the include path?
we did add changes to the <nv/target>
header that need to be included
Driver version isn't the issue here. It's as @miscco said, there are likely mismatched versions of nv/
and cuda/
headers, because when I try a simpler reproducer with the entire CCCL library, it works just fine: https://godbolt.org/z/sd9PehKWG
@lw CCCL components are not independent and so vendoring just the libcudacxx/include/cuda
headers into your conda environment won't work.
@lw Can we close this bug?
I tried again, making sure I copy both the cuda
and nv
subdirectories, and all seems to work. Closing.
Is this a duplicate?
Type of Bug
Compile-time Error
Component
libcu++
Describe the bug
When using cccl from the main branch, I'm hitting compile errors such as these:
How to Reproduce
#include <cuda/ptx>
Expected behavior
It builds.
Reproduction link
No response
Operating System
Ubuntu 20.04.1
nvidia-smi output
NVCC version