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

Changed MiniEngine RT sample to work with multiple BLASes #790

Merged
merged 2 commits into from
Jul 19, 2022

Conversation

stanard
Copy link
Member

@stanard stanard commented Jul 19, 2022

The sample was designed to support multiple BLASes, but it had a bug which probably prevented it from working. All BLAS builds were assigned the same scratch buffer memory, but without a UAV barrier between builds, memory corruption could occur. This was probably avoided by only creating one BLAS. I updated the sample to create a BLAS per mesh and assign each build its own scratch buffer. The alternative was to issue UAV barriers, but this prevents the driver from batching (simultaneous) builds.

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

1 participant