From 6912ab083c57aac007eeb22db281aacbe3a89b60 Mon Sep 17 00:00:00 2001 From: Anthony Lombardi Date: Tue, 10 Oct 2023 09:16:10 -0400 Subject: [PATCH] ENH: Enable CUDA on Windows and Linux --- SuperBuild/External_Autoscoper.cmake | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/SuperBuild/External_Autoscoper.cmake b/SuperBuild/External_Autoscoper.cmake index 6b8ac99..a151cec 100644 --- a/SuperBuild/External_Autoscoper.cmake +++ b/SuperBuild/External_Autoscoper.cmake @@ -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) @@ -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