Fix #132036: Minimum CUDA architecture in generated OSL PTX code
Cycles supports OptiX on Maxwell and up architectures, but the default in OSL is to generate PTX targeting Pascal and up. Adjust the OSL target architecture to Maxwell to fix this. Pull Request: https://projects.blender.org/blender/blender/pulls/133011
This commit is contained in:
committed by
Brecht Van Lommel
parent
be67a07cae
commit
bedf7ff0c1
@@ -56,7 +56,7 @@ set(OSL_EXTRA_ARGS
|
||||
)
|
||||
|
||||
if(NOT APPLE)
|
||||
list(APPEND OSL_EXTRA_ARGS -DOSL_USE_OPTIX=ON)
|
||||
list(APPEND OSL_EXTRA_ARGS -DOSL_USE_OPTIX=ON -DCUDA_TARGET_ARCH=sm_50)
|
||||
endif()
|
||||
|
||||
ExternalProject_Add(external_osl
|
||||
|
||||
Reference in New Issue
Block a user