It's hard to know without seeing more of your compilation and your make.inc file. The error suggests that the CUDA version for the headers was >= 12.0, when cudaGetDeviceProperties_v2 was defined, but the CUDA library being linked is < 12.0. You can check what symbols are provided by the CUDA library and what symbol is expected by the MAGMA library, e.g.:
methane> module swap cuda cuda/12.0.0
methane> cd $CUDADIR/lib64
methane> pwd
/.../cuda-12.0.0-.../lib64
methane> nm -gD libcudart.so | grep cudaGetDeviceProp
000000000006f2d0 T
cudaGetDeviceProperties@@libcudart.so.12
0000000000049970 T
cudaGetDeviceProperties_v2@@libcudart.so.12
methane> module swap cuda cuda/11.8.0
methane> cd $CUDADIR/lib64
methane> pwd
/.../cuda-11.8.0-.../lib64
methane> nm -gD libcudart.so | grep cudaGetDeviceProp
0000000000049390 T cudaGetDeviceProperties@@libcudart.so.11.0
methane> cd ~/magma/lib/
methane> nm -gD libmagma.so | grep cudaGetDeviceProp
U
cudaGetDeviceProperties@libcudart.so.11.0
Obviously in this case, MAGMA was compiled with CUDA 11 instead of CUDA 12.
Mark