mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-09-19 14:20:00 +00:00
Merge pull request #1310 from davidgyu/dev_cuda_nvcc_defaults_fix
Improved documentation for OSD_CUDA_NVCC_FLAGS
This commit is contained in:
commit
db1ac8045c
@ -600,10 +600,13 @@ if(CUDA_FOUND)
|
|||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
list( APPEND CUDA_NVCC_FLAGS -Xcompiler -fPIC )
|
list( APPEND CUDA_NVCC_FLAGS -Xcompiler -fPIC )
|
||||||
|
# Use OSD_CUDA_NVCC_FLAGS to specify --gpu-architecture or other CUDA
|
||||||
|
# compilation options. The overrides here are only for compatibility
|
||||||
|
# with older OpenSubdiv releases and obsolete CUDA versions.
|
||||||
if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
|
if (NOT DEFINED OSD_CUDA_NVCC_FLAGS)
|
||||||
if (CUDA_VERSION_MAJOR LESS 6)
|
if (CUDA_VERSION_MAJOR LESS 6)
|
||||||
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
|
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_11 )
|
||||||
else()
|
elseif (CUDA_VERSION_MAJOR LESS 8)
|
||||||
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
|
set( OSD_CUDA_NVCC_FLAGS --gpu-architecture compute_20 )
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
@ -135,6 +135,8 @@ SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path) cmake -D NO_PTEX=1 -D NO_DOC=1 \
|
|||||||
-DCMAKE_TOOLCHAIN_FILE=[toolchain file for crossplatform builds]
|
-DCMAKE_TOOLCHAIN_FILE=[toolchain file for crossplatform builds]
|
||||||
|
|
||||||
-DCUDA_TOOLKIT_ROOT_DIR=[path to CUDA Toolkit]
|
-DCUDA_TOOLKIT_ROOT_DIR=[path to CUDA Toolkit]
|
||||||
|
-DOSD_CUDA_NVCC_FLAGS=[CUDA options, e.g. --gpu-architecture]
|
||||||
|
|
||||||
-DPTEX_LOCATION=[path to Ptex]
|
-DPTEX_LOCATION=[path to Ptex]
|
||||||
-DGLFW_LOCATION=[path to GLFW]
|
-DGLFW_LOCATION=[path to GLFW]
|
||||||
-DSTRINGIFY_LOCATION=[path to stringify utility]
|
-DSTRINGIFY_LOCATION=[path to stringify utility]
|
||||||
|
@ -105,6 +105,8 @@ The following configuration arguments can be passed to the CMake command line.
|
|||||||
-DCMAKE_LIBDIR_BASE=[library directory basename (default: lib)]
|
-DCMAKE_LIBDIR_BASE=[library directory basename (default: lib)]
|
||||||
|
|
||||||
-DCUDA_TOOLKIT_ROOT_DIR=[path to CUDA]
|
-DCUDA_TOOLKIT_ROOT_DIR=[path to CUDA]
|
||||||
|
-DOSD_CUDA_NVCC_FLAGS=[CUDA options, e.g. --gpu-architecture]
|
||||||
|
|
||||||
-DPTEX_LOCATION=[path to Ptex]
|
-DPTEX_LOCATION=[path to Ptex]
|
||||||
-DGLFW_LOCATION=[path to GLFW]
|
-DGLFW_LOCATION=[path to GLFW]
|
||||||
-DTBB_LOCATION=[path to Intel's TBB]
|
-DTBB_LOCATION=[path to Intel's TBB]
|
||||||
|
Loading…
Reference in New Issue
Block a user