complining error

[Old posts from the commercial version of ArrayFire] Discussion of ArrayFire using CUDA or OpenCL.

Moderator: pavanky

complining error

Postby aharbilx » Sun Apr 27, 2014 6:27 pm

Hi Everybody,

I am trying to compile my material science application by linking it to arrayfire librairies i used ./configure like this:

./configure BLAS_LIBS="-L/opt/arrayfire-2.0/lib64 -Wl,--no-as-needed -L/opt/arrayfire-2.0/fortran/lib64 -lafcl_fortran -L/opt/arrayfire-2.0/lib64 -lafcl -Wl,-rpath,/opt/arrayfire-2.0/fortran/lib64,-rpath,/opt/arrayfire-2.0/fortran/lib64 -Wl,-rpath,/opt/arrayfire-2.0/lib64,-rpath,/opt/arrayfire-2.0/lib64 /opt/arrayfire-2.0/fortran/module/arrayfire.f95"

But i am getting error:

/usr/bin/ld: ../../Modules/libqemod.a(zhpev_drv.o): undefined reference to symbol 'dznrm2_'
//usr/lib/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [pw.x] Error 1
make[2]: Leaving directory `/home/youssef/Documents/Soft/espresso/espresso/PW/src'
make[1]: *** [pw] Error 2
make[1]: Leaving directory `/home/youssef/Documents/Soft/espresso/espresso/PW'
make: *** [pw] Error 2

Could you please tell me what goes wrong?
Posts: 1
Joined: Sun Apr 27, 2014 6:20 pm

Re: complining error

Postby pavanky » Mon Apr 28, 2014 12:05 pm


ArrayFire is not a drop in replacement for BLAS. The error you are seeing is because the compiler is looking for the BLAS API symbols which arrayfire does not provide.
Pavan Yalamanchili,
~ If it is not broken, you have not tried hard enough ~
User avatar
Site Admin
Posts: 1123
Joined: Mon Mar 15, 2010 7:39 pm
Location: Atlanta, GA

Return to [archive-commercial] Programming & Development with ArrayFire