prism-em / prismatic

C++/CUDA package for parallelized simulation of image formation in Scanning Transmission Electron Microscopy (STEM) using the PRISM and multislice algorithms
GNU General Public License v3.0
79 stars 40 forks source link

Migrating CMake from `FindCUDA` to `FindCUDAToolkit` #120

Open jakirkham opened 8 months ago

jakirkham commented 8 months ago

It looks like prismatic is still using CMake's FindCUDA

https://github.com/prism-em/prismatic/blob/9f205d0dbd26f23ccd9ec507425e76d359070217/CMakeLists.txt#L140-L145

However FindCUDA is deprecated

The current recommendation is to use CUDA as a language via enable_language(CUDA)

Also FindCUDAToolkit is recommended for finding CUDA Toolkit components