Describe the issue
The CMake module FindCUDA is deprecated as of v3.27 of CMake but it's still in use here:
https://github.com/quantumlib/qsim/blob/v0.21.0/pybind_interface/decide/CMakeLists.txt#L19, apparently the correct thing to do is outlined here: https://cmake.org/cmake/help/latest/module/FindCUDA.html
What version of qsim are you using?
master
How can the issue be reproduced?
on master, on a gpu:
export CUQUANTUM_DIR=/opt/apps/cuquantum/
export CUQUANTUM_ROOT=/opt/apps/cuquantum/
make
export CUDAARCHS="70;80;89;90"
pip install .
returns:
By not providing "FindCUDA.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "CUDA", but
CMake did not find one.
Could not find a package configuration file provided by "CUDA" with any of
the following names:
CUDAConfig.cmake
cuda-config.cmake
Add the installation prefix of "CUDA" to CMAKE_PREFIX_PATH or set
"CUDA_DIR" to a directory containing one of the above files. If "CUDA"
provides a separate development package or SDK, be sure it has been
installed.
Attempting to manually point to FindCUDA.cmake raises the error:
The FindCUDA module has been removed by policy CMP0146.
Rolling back to the last tagged release I can successfully build with cuda / cuquantum support.
Describe the issue
The CMake module FindCUDA is deprecated as of v3.27 of CMake but it's still in use here:
https://github.com/quantumlib/qsim/blob/v0.21.0/pybind_interface/decide/CMakeLists.txt#L19, apparently the correct thing to do is outlined here: https://cmake.org/cmake/help/latest/module/FindCUDA.html
What version of qsim are you using?
master
How can the issue be reproduced?
on master, on a gpu:
returns:
Attempting to manually point to FindCUDA.cmake raises the error:
Rolling back to the last tagged release I can successfully build with cuda / cuquantum support.