Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed child offset computation in nanovdb::tools::cuda::indexToGrid#2013

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
heandreas wants to merge1 commit intoAcademySoftwareFoundation:master
base:master
Choose a base branch
Loading
fromheandreas:fix_index_to_grid_type_conversion

Conversation

@heandreas
Copy link

I ran into a problem when usingnanovdb::tools::cuda::indexToGrid<nanovdb::Vec3f> to build a grid ofVec3fs from an index grid. After debugging for a while I managed to find a fix that works for me. I believe the computation fordstTile.child inprocessRootTilesKernel is not correct for all types. It seems to work for float and double grids, but not for Vec3f and probably many (or all?) other types that do not align with the size of the index type. My fix is inspired by the code inprocessNodesKernel that also computes similar byte offsets.

I extended the unit testCudaIndexGridToGrid_ValueOnIndex to show the problem. It only passes with my fix and not the original code. Feedback is highly appreciated!

… building a grid with internal nodes that differed in size from the size of internal nodes of the index grid.
@linux-foundation-easycla

CLA Missing IDCLA Not Signed

@kmuseth
Copy link
Contributor

thanks@heandreas ! Looking at your changes now :)

@kmuseth
Copy link
Contributor

yes this does indeed look like a valid fix - great catch!

since you didn't sign the EasyCLA I'm taking the liberty to re-write your PR slightly with more documentation explaining how this fix works

@heandreas
Copy link
Author

Sounds great, thanks for looking into it!

@kmuseth
Copy link
Contributor

@heandreas - see PR#2021 - I added a credit to you - let me know if you prefer to be anonymous.

@heandreas
Copy link
Author

@kmuseth Thanks, I'd be delighted to show up in the nanovdb changelog :-)

@kmuseth
Copy link
Contributor

@heandreas - take a lookhere

heandreas reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kmusethkmusethAwaiting requested review from kmusethkmuseth is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@heandreas@kmuseth

[8]ページ先頭

©2009-2025 Movatter.jp