Quantcast
Channel: Intel® Many Integrated Core Architecture
Viewing all articles
Browse latest Browse all 1347

MAGMA Offload

$
0
0

I'm trying to see how the MIC with MAGMA dgemm compares to CUBLAS on my machine. I installed MAGMA with icc and successfully ran testing_dgemm.cpp. I then changed to my problem size (severely oblong) and again, successfully ran testing_dgemm.cpp. Then, I put in

            #pragma offload target(mic) in(d_A:length(sizeA)) in(d_B:length(sizeB)) out(d_C:length(sizeC))
            magmablas_dgemm( opts.transA, opts.transB, M, N, K, alpha, d_A, ldda, d_B, lddb, beta,  d_C, lddc );

in testing_dgemm.cpp and also edited magmablas_dgemm in magmablas_d.h to

void __attribute__((target(mic))) magmablas_dgemm(
    magma_trans_t transA, magma_trans_t transB,
    magma_int_t m, magma_int_t n, magma_int_t k,
    double alpha,
    magmaDouble_const_ptr dA, magma_int_t ldda,
    magmaDouble_const_ptr dB, magma_int_t lddb,
    double beta,
    magmaDouble_ptr       dC, magma_int_t lddc );

I can successfully compile

icc -O3 -DADD_ -Wall -openmp -DMAGMA_WITH_MKL -DMAGMA_SETAFFINITY -DHAVE_CUBLAS -DMIN_CUDA_ARCH=100 -I/usr/local/cuda-6.0/include -I/opt/intel/composerxe/mkl/include -I/home/mjswartz/Downloads/magma-1.5.0-beta2/include -I/home/mjswartz/Downloads/magma-1.5.0-beta2/control -c testing_dgemm.cpp -o testing_dgemm.o

but when I try and compile

icc -openmp  testing_dgemm.o -o testing_dgemm libtest.a /home/mjswartz/Downloads/magma-1.5.0-beta2/testing/lin/liblapacktest.a -L/home/mjswartz/Downloads/magma-1.5.0-beta2/lib -lmagma -L/opt/intel/composerxe/mkl/lib/intel64 -L/usr/local/cuda-6.0/lib64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lcublas -lcudart -lstdc++ -lm

I get the following errors:

ld: warning: libimf.so, needed by /opt/intel/composer_xe_2013_sp1.3.174/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)
ld: warning: libsvml.so, needed by /opt/intel/composer_xe_2013_sp1.3.174/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)
ld: warning: libirng.so, needed by /opt/intel/composer_xe_2013_sp1.3.174/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)
ld: warning: libintlc.so.5, needed by /opt/intel/composer_xe_2013_sp1.3.174/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)

I've seen that others have had this problem, which they fixed with sourcing compilervars.sh, but I already do that. Any ideas what's going on?

Thanks in advance!


Viewing all articles
Browse latest Browse all 1347

Trending Articles