Skip to content

fix(build): Correctly serialize CUDA build in testrender - #2157

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
jfpanisset:testrender-parallel-build
Aug 30, 2026
Merged

fix(build): Correctly serialize CUDA build in testrender#2157
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
jfpanisset:testrender-parallel-build

Conversation

@jfpanisset

@jfpanisset jfpanisset commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

When building with CUDA / OptiX, src/testrender/CMakeLists.txt was not specifying a dependency of testrender on testrender_ptx, allowing GNU Make to run these two sets of instructions as parallel jobs. When building on multiple cores, this could result in llvm crashing when the testrender build steps would try to access files still being build by the testrender_ptx build steps.

Fixes #2156 and is the same fix which was previously applied to testshade in PR 2012.

Assisted-by: Claude/Sonnet 5

When building with CUDA / OptiX, src/testrender/CMakeLists.txt was not
specifying a dependency of testrender on testrender_ptx, allowing GNU
Make to run these two sets of instructions as parallel jobs. When
building on multiple cores, this could result in llvm crashing
when the testrender build steps would try to access files still
being build by the testrender_ptx build steps.

This addresses [Issue 2156](AcademySoftwareFoundation#2156)
and is the same fix which was previously applied to testshade in
[PR 2012](AcademySoftwareFoundation#2012).

Assisted-by: Claude/Sonnet 5
Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
@lgritz

lgritz commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

I think the magic words are:

Fixes #nnnn

or "Closes", in order to make GitHub understand that when a PR is merged, the linked Issue should be closed as a result.

Any other rewordings, no matter how obvious to humans, are not understood by GitHub to indicate that the issue is really fixed/closed by the PR, merely that it references it.

I'm not sure if it will work for me to edit it it, since I'm not the author. Can you edit the PR description to fix the wording? Thanks.

@jfpanisset

Copy link
Copy Markdown
Contributor Author

I think that worked, the issue is now showing that it will be closed by this PR.

Slightly confusing that issue and PR count are basically the same!

@lgritz lgritz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@lgritz
lgritz merged commit b81eb60 into AcademySoftwareFoundation:main Aug 30, 2026
24 of 25 checks passed
@lgritz lgritz changed the title Correctly serialize CUDA build in testrender fix(build): Correctly serialize CUDA build in testrender Aug 30, 2026
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.

[BUG] testrender CUDA parallel build missing dependencies

2 participants