SIRF-SuperBuild icon indicating copy to clipboard operation
SIRF-SuperBuild copied to clipboard

failed to compile CCPi-Regularisation-Toolkit with CUDA and conda

Open KrisThielemans opened this issue 8 months ago • 3 comments

Following https://github.com/SyneRBI/SIRF/wiki/Building-SIRF-and-CIL-with-conda on the STFC tomography gives

[30/36] Performing build step for 'CCPi-Regularisation-Toolkit'
FAILED: builds/CCPi-Regularisation-Toolkit/stamp/CCPi-Regularisation-Toolkit-build /home/KrisThielemans/devel/buildConda2/builds/CCPi-Regularisation-Toolkit/stamp/CCPi-Regularisation-Toolkit-build 
cd /home/KrisThielemans/devel/buildConda2/builds/CCPi-Regularisation-Toolkit/build && /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/cmake -E env CIL_VERSION=v24.0.1 /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/cmake --build . && /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/cmake -E touch /home/KrisThielemans/devel/buildConda2/builds/CCPi-Regularisation-Toolkit/stamp/CCPi-Regularisation-Toolkit-build
[ 56%] Built target cilreg
[ 60%] Building NVCC (Device) object src/Core/CMakeFiles/cilregcuda.dir/regularisers_GPU/cilregcuda_generated_dTV_FGP_GPU_core.cu.o
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc warning : incompatible redefinition for option 'compiler-bindir', the last value of this option was used
nvcc warning : Support for offline compilation for architectures prior to '<compute/sm/lto>_75' will be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
sh: 1: cicc: not found
CMake Error at cilregcuda_generated_dTV_FGP_GPU_core.cu.o.Release.cmake:280 (message):
  Error generating file
  /home/KrisThielemans/devel/buildConda2/builds/CCPi-Regularisation-Toolkit/build/src/Core/CMakeFiles/cilregcuda.dir/regularisers_GPU/./cilregcuda_generated_dTV_FGP_GPU_core.cu.o

ccmake in builds/CCPi-Regularisation-Toolkit/build shows

UILD_CUDA                       ON
 BUILD_MATLAB_WRAPPER             OFF
 BUILD_PYTHON_WRAPPER             ON
 CMAKE_BUILD_TYPE                 Release
 CMAKE_INSTALL_PREFIX             /home/KrisThielemans/devel/install
 CONDA_BUILD                      OFF
 CUDA_HOST_COMPILER               /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/x86_64-conda-linux-gnu-cc
 CUDA_SDK_ROOT_DIR                CUDA_SDK_ROOT_DIR-NOTFOUND
 CUDA_TOOLKIT_ROOT_DIR            /home/KrisThielemans/miniconda3/envs/cilsirfbuild/targets/x86_64-linux
 CUDA_USE_STATIC_CUDA_RUNTIME     ON
 MATLAB_DEST_DIR
 PYTHON_DEST_DIR                  /home/KrisThielemans/devel/install/python
 PYTHON_EXECUTABLE                /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/python3.13
 Python3_EXECUTABLE               /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/python3.13
 Python_EXECUTABLE                /home/KrisThielemans/miniconda3/envs/cilsirfbuild/bin/python3.13

KrisThielemans avatar Apr 09 '25 09:04 KrisThielemans

have to use -DCCPi-Regularisation-Toolkit_USE_CUDA=OFF

KrisThielemans avatar Apr 09 '25 09:04 KrisThielemans

The error cicc: not found seems to point to an issue with the installation of the SDK?

Currently, by https://github.com/TomographicImaging/CCPi-Regularisation-Toolkit/pull/216 there's a refactoring of the CMake CUDA build in the Regularisation Toolkit.

paskino avatar Oct 17 '25 07:10 paskino

Merged; so the current CCPi-Regularisation-Toolkit@master fixes cicc: not found.

casperdcl avatar Oct 17 '25 19:10 casperdcl