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

And HIP support for NanoVDB #1253

Merged
merged 1 commit into from Nov 19, 2021
Merged

Conversation

brechtvl
Copy link
Contributor

We are using HIP in Blender/Cycles for AMD GPU rendering, and some small changes are needed to make NanoVDB work.
https://github.com/ROCm-Developer-Tools/HIP

  • Use host/device qualifiers when either __CUDACC__ or __HIP__ is defined
  • Add __hostdev__ to method definitions outside the class body. CUDA only needs them in the class body declaration, but HIP needs both.

This makes using the NanoVDB headers as part of HIP C++ code work. It does not add support for HIP to the examples. That would be a much bigger change and likely add much code duplication.

* Use host/device qualifiers when either __CUDACC__ or __HIP__ is defined
* Add __hostdev__ to method definitions outside the class body. CUDA only
  needs them in the class body declaration, but HIP needs both.

This makes using the NanoVDB headers as part of HIP C++ code work. It does
not add support for HIP to the examples.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
@kmuseth kmuseth merged commit 68f32e1 into AcademySoftwareFoundation:master Nov 19, 2021
16 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants