Skip to content

Commit

Permalink
ENH: Enable CUDA on Windows and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NicerNewerCar committed Oct 10, 2023
1 parent a74da5f commit 6912ab0
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions SuperBuild/External_Autoscoper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,16 @@ if(NOT DEFINED ${proj}_DIR AND NOT ${SUPERBUILD_TOPLEVEL_PROJECT}_USE_SYSTEM_${p
)
endif()

set(Autoscoper_OPENCL_USE_ICD_LOADER TRUE)
# set(Autoscoper_OPENCL_USE_ICD_LOADER TRUE)
# if(APPLE)
# set(Autoscoper_OPENCL_USE_ICD_LOADER FALSE)
# endif()

set(Autoscoper_OPENCL_USE_ICD_LOADER FALSE)
if(APPLE)
set(Autoscoper_OPENCL_USE_ICD_LOADER FALSE)
set(Autoscoper_RENDERING_BACKEND "OpenCL")
else()
set(Autoscoper_RENDERING_BACKEND "CUDA")
endif()

if(UNIX AND NOT APPLE)
Expand Down Expand Up @@ -103,7 +110,7 @@ if(NOT DEFINED ${proj}_DIR AND NOT ${SUPERBUILD_TOPLEVEL_PROJECT}_USE_SYSTEM_${p
-DAutoscoper_INSTALL_DEPENDENCIES:BOOL=${Autoscoper_INSTALL_DEPENDENCIES}
-DAutoscoper_INSTALL_Qt_LIBRARIES:BOOL=OFF
-DAutoscoper_INSTALL_SAMPLE_DATA:BOOL=OFF
-DAutoscoper_RENDERING_BACKEND:STRING=OpenCL
-DAutoscoper_RENDERING_BACKEND:STRING=${Autoscoper_RENDERING_BACKEND}
-DQt5_DIR:PATH=${Qt5_DIR}
# Dependencies
# NA
Expand Down

0 comments on commit 6912ab0

Please sign in to comment.