NanoVDB: optional CCCL cuda::mr / cuda::buffer adapter
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
Direzione di ricerca
This is design work, not a ready task, and the issue says it is not planned until someone asks for it. Start with the custom allocator pattern in cuda/DeviceResource.h and the MINIMUM_CCCL_VERSION constraint in the build configuration. Done would mean an agreed design, a use case from a maintainer, and a version-gated adapter that maps the CCCL allocate_sync and allocate calls onto NanoVDB's resource interface.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Split out of #2232, where it was step 4. Not planned until someone needs it. If you do, please comment here with your use case.
What it would be
Optional interop between NanoVDB's CUDA memory types and CCCL's:
- Use a CCCL
cuda::mrresource (orresource_ref) wherever NanoVDB takes aResourceT. - Use a CCCL
cuda::buffer<std::byte>asGridHandlestorage. - Convert
cuda::Buffer<T>andcuda::BufferView<T>to and fromcuda::std::span<T>.
Why it waits
- NanoVDB can't depend on recent CCCL. It supports CCCL back to 2.8 (
MINIMUM_CCCL_VERSION), butcuda::bufferonly exists in the CCCL that ships with CUDA 13.2 and later. An adapter would have to be version-gated. It would sit next to NanoVDB's owncuda::Bufferand resources rather than replace them, and replacing them has to wait until the minimum CCCL version catches up. - CCCL's resource interface has moved since #2232 was written. In CCCL 3.4.2, the version NanoVDB fetches by default, synchronous allocation is
allocate_sync(bytes, alignment)/deallocate_sync(ptr, bytes, alignment), and stream-ordered allocation isallocate(stream, bytes, alignment)/deallocate(stream, ptr, bytes, alignment), with the stream first. NanoVDB's resources use the earlier spellings:allocate(bytes, alignment)andallocate_async(bytes, alignment, stream). So the adapter is a real wrapper that maps one interface onto the other, not a type alias. The same applies to #2232's plannedusing Buffer = ::cuda::buffer<T>alias at CUDA 13.2 or later. - It isn't needed to inject an allocator. Today a custom allocator is a small NanoVDB resource struct (see
cuda/DeviceResource.h), and wrapping a CCCL resource in one is a few lines of forwarding.
When to revisit
- Someone asks for native CCCL interop, or
- the minimum CCCL version reaches one with
cuda::bufferand the currentcuda::mrspelling, at which point NanoVDB could adopt the CCCL spelling outright instead of adding an adapter.
- Lingua principale
- C++
- Stelle
- 3.6k
- Fork
- 807
- Merge medio
- 6g 4h
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AcademySoftwareFoundation/openvdb
-
bug nanovdb
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AcademySoftwareFoundation/openvdb#2345 ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG] typo: vdb_tool: OPENVDB_TOOL_USE_PDAL=ON cannot configure on Windows — find_package(libdpal …) typoForse già presa @najibna l’ha presa 69 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
AcademySoftwareFoundation/openvdb#2344 ·
I maintainer di solito rispondono entro 2 giorni
-
nanovdb
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AcademySoftwareFoundation/openvdb#2274 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AcademySoftwareFoundation/openvdb#1896 ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG] NanoVDB line fails with syntax error in /std:c++20Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug nanovdb
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
AcademySoftwareFoundation/openvdb#1521 · 5 commenti · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di AcademySoftwareFoundation/openvdb
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
godotengine/godot#125913 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
期待增加虚线线条样式Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
vllm-project/vllm#70568 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
mw00/project-maya#1368 ·
I maintainer di solito rispondono entro 2 giorni