LibRETT used to fail with parallel build + GNU Makefiles (ala the Umpire build bug and fix). This fix follows the prescription used in #340.
Unsure how this ever worked, but for some reason (at least for CMake 3.25+), you need to explicitly link to the CUDA::cudart TARGET, because apparently it doesn't get propagated via other dependencies... Unclear why CUDA::cublas doesn't propagate it, but who knows. Before this fix, I get the following on my system (CUDA 11.17 CMake 3.25) when building and linking ta_test
Fix various CMake bugs stemming from
ENABLE_CUDA
LibRETT
used to fail with parallel build + GNU Makefiles (ala the Umpire build bug and fix). This fix follows the prescription used in #340.CUDA::cudart
TARGET, because apparently it doesn't get propagated via other dependencies... Unclear whyCUDA::cublas
doesn't propagate it, but who knows. Before this fix, I get the following on my system (CUDA 11.17 CMake 3.25) when building and linkingta_test