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

fix: Have ReParameter only copy data when it changes #1698

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Jun 14, 2023

For GPU in particular, this prevents needless transfers to the device when no values actually change.

Also, keep track of some statistics about how much ReParameter is being used. (Which also helps to verify that this change works as intended.)

For GPU in particular, this prevents needless transfers to the device
when no values actually change.

Also, keep track of some statistics about how much ReParameter is
being used. (Which also help to verify that this change works as
intended.)

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz merged commit 49aac87 into AcademySoftwareFoundation:main Jun 14, 2023
@lgritz lgritz deleted the lg-reparam branch June 14, 2023 22:05
chellmuth pushed a commit to chellmuth/OpenShadingLanguage that referenced this pull request Sep 6, 2024
* fix: Have ReParameter only copy data when it changes (AcademySoftwareFoundation#1698)
* gpu: OptiX direct callable API that owns groupdata buffer (AcademySoftwareFoundation#1683)

See merge request spi/dev/3rd-party/osl-feedstock!51
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.

2 participants