Skip to content
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

cuda compile issue #130

Open
renyangry opened this issue Jun 13, 2024 · 0 comments
Open

cuda compile issue #130

renyangry opened this issue Jun 13, 2024 · 0 comments

Comments

@renyangry
Copy link

Hi,

I have followed the installation instruction and was trying out the example_projector.py.
However, I am getting this error message and have no idea how to slove it.
Traceback (most recent call last):
File "/home/rgu/Documents/GitHub/S3_knee_segmentation/ct2x_angled.py", line 56, in
main()
File "/home/rgu/Documents/GitHub/S3_knee_segmentation/ct2x_angled.py", line 46, in main
with Projector(patient, carm=carm) as projector:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rgu/miniconda3/lib/python3.11/site-packages/deepdrr/projector/projector.py", line 306, in init
self.mod = _get_kernel_projector_module(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rgu/miniconda3/lib/python3.11/site-packages/deepdrr/projector/projector.py", line 138, in _get_kernel_projector_module
return SourceModule(
^^^^^^^^^^^^^
File "/home/rgu/miniconda3/lib/python3.11/site-packages/pycuda/compiler.py", line 355, in init
cubin = compile(
^^^^^^^^
File "/home/rgu/miniconda3/lib/python3.11/site-packages/pycuda/compiler.py", line 304, in compile
return compile_plain(source, options, keep, nvcc, cache_dir, target)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rgu/miniconda3/lib/python3.11/site-packages/pycuda/compiler.py", line 90, in compile_plain
checksum.update(preprocess_source(source, options, nvcc).encode("utf-8"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rgu/miniconda3/lib/python3.11/site-packages/pycuda/compiler.py", line 58, in preprocess_source
raise CompileError(
pycuda.driver.CompileError: nvcc preprocessing of /tmp/tmpozfdc8zt.cu failed
[command: nvcc --preprocess -D NUM_VOLUMES=1 -D NUM_MATERIALS=3 -D ATTENUATE_OUTSIDE_VOLUME=0 -D AIR_INDEX=0 -arch sm_89 -I/home/rgu/miniconda3/lib/python3.11/site-packages/deepdrr/projector/cubic -I/home/rgu/miniconda3/lib/python3.11/site-packages/deepdrr/projector -I/home/rgu/miniconda3/lib/python3.11/site-packages/pycuda/cuda /tmp/tmpozfdc8zt.cu --compiler-options -P]
[stderr:
b"nvcc fatal : Value 'sm_89' is not defined for option 'gpu-architecture'\n"]

I am currently on cuda v10.1. Appreciation on any suggestion for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant