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

[BUG] Unable to run nanovdb on cuda #1855

Open
amstrudy opened this issue Jun 25, 2024 · 0 comments
Open

[BUG] Unable to run nanovdb on cuda #1855

amstrudy opened this issue Jun 25, 2024 · 0 comments
Labels

Comments

@amstrudy
Copy link

Environment

Operating System: Ubuntu 20.04
Version / Commit SHA: Using the nachovizzo version of openvdb for vdbfusion, not many substantial differences: https://github.com/nachovizzo/openvdb.git

Describe the bug

My attempts to run nanovdb/openvdb with cuda have so far been unsuccessful. I build openvdb with -DOPENVDB_BUILD_NANOVDB=ON -DNANOVDB_USE_CUDA=ON but for the example ex_raytrace_level_set the rendering code within nanovdb.cu (around line 85) is not properly executed and my rendered images are blank. Changing nothing but whether NANOVDB_USE_CUDA is defined causes the rendering to happen properly.

I dug into the backend of this rendering code a bit (namely in ex_util/ComputePrimitives.h) and noticed that none of the code in the __CUDACC__ blocks were being run. I tried #define-ing this directive in the main file for the example, but got a bunch of errors about threadIdX and such not being declared in ComputePrimitives.h--it doesn't seem like those are declared anywhere in the codebase which had me scratching my head a bit.

I'm not sure if this is a bug, but if it isn't and this is user error then some more clear documentation would be greatly helpful. I wasn't able to find much about enabling cuda in the code.

@amstrudy amstrudy added the bug label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant