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 9a001f3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions SuperBuild/External_Autoscoper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ if(NOT DEFINED ${proj}_DIR AND NOT ${SUPERBUILD_TOPLEVEL_PROJECT}_USE_SYSTEM_${p

set(EXTERNAL_PROJECT_OPTIONAL_CMAKE_CACHE_ARGS)



# Workaround improper generation of target file when destination associated
# with "install(EXPORT <export-name> DESTINATION <dir>)" start with "./"
if(NOT APPLE)
Expand All @@ -57,9 +59,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 +112,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 9a001f3

Please sign in to comment.