In cases where lapackpp is included as a subproject, gpu_backend breaks containment and can be overridden by previous enablement / discovery of a CUDA compiler (e.g. CMAKE_CUDA_COMPILER is defined). The offending line is here. This used to be a problem in blaspp as well, but has since been fixed. See logic here.
In general, relying on possibly externally set variables may lead to unexpected behaviour.
In cases where
lapackpp
is included as a subproject,gpu_backend
breaks containment and can be overridden by previous enablement / discovery of a CUDA compiler (e.g.CMAKE_CUDA_COMPILER
is defined). The offending line is here. This used to be a problem inblaspp
as well, but has since been fixed. See logic here.In general, relying on possibly externally set variables may lead to unexpected behaviour.