even so the shared and static libraries are not properly installed (see previous thread), I identified another issue of the shared library when I tried to make the examples.
Apparently, the path to the Intel MKL is wrong. The magma shared library looks for the Intel MKL shared libraries in /usr/bin but they are located in:
/opt/intel/compilers_and_libraries_2018.0.128/linux/mkl/lib/intel64_lin
I added:
Code: Select all
-L$/opt/intel/compilers_and_libraries_2018.0.128/linux/mkl/lib/intel64_lin -lmkl_core -lmkl_gnu_thread -lmkl_gf_lp64Code: Select all
MAGMA_LIBS := -L$(MAGMADIR)/lib -lmagma_sparse -lmagma \
-L$(CUDADIR)/lib64 -lcublas -lcudart -lcusparse \
-L$(OPENBLASDIR)/lib -lopenblas \
-L$/opt/intel/compilers_and_libraries_2018.0.128/linux/mkl/lib/intel64_lin -lmkl_core -lmkl_gnu_thread -lmkl_gf_lp64Code: Select all
make all
gcc -Wall -DADD_ -I/usr/local/magma/include -I/usr/local/magma/sparse/include -I/usr/local/cuda-9.0/include -c -o example_v1.o example_v1.c
gcc -Wall -o example_v1 example_v1.o -L/usr/local/magma/lib -lmagma_sparse -lmagma -L/usr/local/cuda-9.0/lib64 -lcublas -lcudart -lcusparse -L/usr/include/openblas/lib -lopenblas -Lopt/intel/compilers_and_libraries_2018.0.128/linux/mkl/lib/intel64_lin -lmkl_core -lmkl_gnu_thread -lmkl_gf_lp64
/usr/bin/ld: cannot find -lmkl_core
/usr/bin/ld: cannot find -lmkl_gnu_thread
/usr/bin/ld: cannot find -lmkl_gf_lp64
collect2: error: ld returned 1 exit status
Makefile:74: die Regel für Ziel „example_v1“ scheiterte
make: *** [example_v1] Fehler 1How can I figure out which path needs to be set and where?
Klaus