I just installed magma 2.5.4 and had successfully run the testing drivers in build/testing.
(Specifically, I want to solve many linear systems of tiny matrices, so I am using magma_dgesv_batched)
Now I want to use the code from magma_dgesv_batched to my project with a CMakeLists linking libraries like the followings:
-L/usr/local/magma/lib magma_sparse magma
-L/usr/lib/cuda/lib64 cublas cudart cusparse
However, when I try to compile, I met some undefined reference errors:
tmpxft_00003500_00000000-5_minus_cuda.cudafe1.cpp:(.text+0x506): undefined reference to `magma_opts::magma_opts(magma_opts_t)'
/usr/bin/ld: tmpxft_00003500_00000000-5_minus_cuda.cudafe1.cpp:(.text+0x514): undefined reference to `magma_opts::parse_opts(int, char**)'
/usr/bin/ld: tmpxft_00003500_00000000-5_minus_cuda.cudafe1.cpp:(.text+0xfce): undefined reference to `magma_opts::cleanup()'
collect2: error: ld returned 1 exit status
It seems that the linking for referencing magma_opts_t and others are missing.
However, I have no idea what I miss or what I can do to solve such a problem.
If there is any other information I need to provide, please let me know.
Thank you very much in advance!