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

build: Change cmake option USE_OPTIX -> OSL_USE_OPTIX #1668

Merged
merged 2 commits into from
May 3, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Apr 11, 2023

This avoids some possible confusion with other projects, or if this is built as a subproject.

Also, change from the C++ side having an OSL_USE_OPTIX defined -- only when building OSL itself -- to having it always defined in oslconfig.h and set to 0 or 1 depending on whether OptiX support was turned on at build time. This allows app-side use of OSL headers to know if it's dealing with an OptiX-capable OSL build.

@lgritz
Copy link
Collaborator Author

lgritz commented Apr 20, 2023

Does this look ok to everyone? It seems fine with OSL internals, but I want to make sure people building externally are aware of (and ok with) the name change so it doesn't break your OSL builds if you need the OptiX support enabled.

@lgritz lgritz force-pushed the lg-useoptix branch 2 times, most recently from f640613 to 4e8753d Compare April 25, 2023 05:06
lgritz added 2 commits May 2, 2023 15:10
This avoids some possible confusion with other projects, or if this
is built as a subproject.

Also, change from the C++ side having an OSL_USE_OPTIX defined -- only
for building OSL itself -- to having it always defined in oslconfig.h
and set to 0 or 1 depending on whether OptiX support was turned on at
build time. This allows app-side use of OSL headers to know if it's
dealing with an OptiX-capable OSL build.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz merged commit ed9857c into AcademySoftwareFoundation:main May 3, 2023
@lgritz lgritz deleted the lg-useoptix branch May 3, 2023 01:25
brechtvl added a commit to brechtvl/OpenShadingLanguage that referenced this pull request Oct 2, 2023
In AcademySoftwareFoundation#1668 USE_OPTIX changed to OSL_USE_OPTIX, but CI was not updated.

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
lgritz pushed a commit that referenced this pull request Oct 3, 2023
In #1668 USE_OPTIX changed to OSL_USE_OPTIX, but CI was not updated.

Also fix use of CPU SIMD flags for compiling CUDA bitcode

---------

Signed-off-by: Brecht Van Lommel <brecht@blender.org>
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.

1 participant