Installation error with MAGMA1.2.1

Open discussion for MAGMA

Installation error with MAGMA1.2.1

Postby heartsunny2000 » Wed Oct 10, 2012 2:35 pm

I was trying to install MAGMA1.2.2 on a linux machine with M2070 cards.
The machine has MKL library installed under /opt/intel/composerxe-2011.4.191/mkl/.

I first copied "make.inc.mkl" to "make.inc" and did "make".

After a bunch of warnings messages for the un-initialized variables, it ended up with the following error:
"ld: cannot find -lmkl_lapack"

I checked the MKL library and change "-lmkl_lapack" to "-lmkl_lapack95_lp64". In addition, I removed the "-lguide" flag which caused another error. However, the following messages came up:
"""
icc -O3 -DADD_ -DHAVE_CUBLAS -DGPUSHMEM=200 -I/usr/local/cuda/include -I../include -I../control -c testing_zgemm.cpp -o testing_zgemm.o
icc -fPIC -nofor_main -Xlinker -zmuldefs -DGPUSHMEM=200 testing_zgemm.o -o testing_zgemm \
lin/liblapacktest.a -L../lib -lmagma -lmagmablas -lmagma \
-L/opt/intel/composerxe-2011.4.191/mkl/lib/intel64 -L/usr/local/cuda/lib64 \
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_lapack95_lp64 -lmkl_core -lpthread -lcublas -lcudart -lm
icc: command line warning #10006: ignoring unknown option '-nofor_main'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_ok_to_fork'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_single'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_ordered'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_init_8'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `omp_get_thread_num'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_barrier'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `omp_get_num_threads'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `omp_get_num_procs'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_4'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_reduce_nowait'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_critical'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_fini_8'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_serialized_parallel'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_critical'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_init_8'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `ompc_set_nested'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `omp_get_nested'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_fini_4'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `omp_in_parallel'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_push_num_threads'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_reduce_nowait'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `omp_get_max_threads'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_init_4'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_serialized_parallel'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_flush'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_single'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_8'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_init_4'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_global_thread_num'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_ordered'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_fork_call'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_atomic_fixed8_add'
/opt/intel/composerxe-2011.4.191/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_for_static_fini'
"""

I appreciate for any help and information!
heartsunny2000
 
Posts: 2
Joined: Wed Oct 10, 2012 2:03 pm

Re: Installation error with MAGMA1.2.1

Postby Stan Tomov » Tue Oct 23, 2012 2:43 am

Try linking with these libraries
Code: Select all
LIB       = -lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lcublas -lm -fopenmp

or consult with the MKL's link adviser at http://software.intel.com/sites/products/mkl/
Stan
Stan Tomov
 
Posts: 251
Joined: Fri Aug 21, 2009 10:39 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest