From 32d28cb3f0730b313dc10769260251c267345bf3 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 6 Mar 2024 11:48:38 -0500 Subject: [PATCH] COMP: Fix Linux build with Autoscoper CUDA backend enabled Ensure CUDACXX env. var is properly set and also update Autoscoper to ensure the corresponding compiler it found within the Autoscoper inner build. Follow-up of f732df9 ("ENH: Update Autoscoper modernizing CUDA integration", 2024-02-12) List of Autoscoper changes: ``` $ git shortlog 4d2eec33f..cebc017fe --no-merges Jean-Christophe Fillion-Robin (1): COMP: Ensure Autoscoper inner-build is built with expected CUDA compiler on Linux ``` --- SuperBuild.cmake | 2 +- SuperBuild/External_Autoscoper.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SuperBuild.cmake b/SuperBuild.cmake index e8c623e..d7bfb2c 100644 --- a/SuperBuild.cmake +++ b/SuperBuild.cmake @@ -35,7 +35,7 @@ if(DEFINED ENV{SlicerAutoscoperM_CUDA_PATH}) endif() else() # See https://cmake.org/cmake/help/latest/envvar/CUDACXX.html#cudacxx - set(ENV{CUDACXX} $ENV{_cuda_path}/bin/nvcc) + set(ENV{CUDACXX} ${_cuda_path}/bin/nvcc) endif() endif() diff --git a/SuperBuild/External_Autoscoper.cmake b/SuperBuild/External_Autoscoper.cmake index 77435f2..37172c1 100644 --- a/SuperBuild/External_Autoscoper.cmake +++ b/SuperBuild/External_Autoscoper.cmake @@ -35,7 +35,7 @@ if(NOT DEFINED ${proj}_DIR AND NOT ${SUPERBUILD_TOPLEVEL_PROJECT}_USE_SYSTEM_${p ExternalProject_SetIfNotDefined( Slicer_${proj}_GIT_TAG - "4d2eec33f2e60ad4e81031832915891c690862db" + "cebc017fe182f0a9e8292eaeb4a2fb173bc52af2" QUIET )