Trouble with compiling examples

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
kirillg
Posts: 1
Joined: Thu Dec 15, 2016 11:20 am

Trouble with compiling examples

Post by kirillg » Thu Dec 15, 2016 11:24 am

After build libs magma.lib, magma_sparse.lib 64-bit with VS2015 i get error : unresolved external symbol DLACPY in function main

mgates3
Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: Trouble with compiling examples

Post by mgates3 » Thu Dec 15, 2016 12:29 pm

The DLACPY function is in LAPACK. What LAPACK library are you using?

Possibly, CMake got the Fortran calling convention wrong. Most Fortran compilers & libraries use lowercase and append an underscore, so it would be dlacpy_ instead of DLACPY. When configuring CMake (I assume that's what you did), did you set USE_FORTRAN on or off?
If on, can you send the magma/include/magma_mangling_cmake.h file that CMake automatically creates?
If off, what did you set FORTRAN_CONVENTION to? Most often it is -DADD_.

-mark

Post Reply