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

Explicitly set the OptiX pipeline stack size. #1254

Merged

Conversation

timgrant
Copy link
Contributor

Description

testrender and testshade were both relying on the automatic pipeline stack size computation in OptiX 7. This was causing a handful of tests to fail for reasons that are still not clear. Computing and manually setting the required stack size clears up the failures.

Tests

I didn't add any tests, but all existing tests pass with this change.

Checklist:

  • I have read the contribution guidelines.
  • I have previously submitted a Contributor License Agreement.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project.

@cmstein
Copy link
Collaborator

cmstein commented Sep 23, 2020

I've tried out this patch locally and it fixes the issues I was seeing with recent drivers.

LGTM!

@@ -527,20 +529,18 @@ OptixRaytracer::make_optix_materials ()
size_t sizeof_msg_log;

// Make module that contains programs we'll use in this scene
OptixModuleCompileOptions module_compile_options;
OptixModuleCompileOptions module_compile_options = {};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I ask... what is going on with this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making sure the options are zero-initialized.

@lgritz lgritz merged commit ff599d1 into AcademySoftwareFoundation:master Sep 23, 2020
lgritz pushed a commit to lgritz/OpenShadingLanguage that referenced this pull request Sep 23, 2020
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.

4 participants