undefined reference to `magma_dlaed2_' with open64-4.5.2 &
Posted: Fri May 03, 2013 7:24 am
.. & acml-5-1-0-open64-64bit-int64
I've started moving back to older revisions of ACML (begun with 5.3.0) , my make.inc:
CC = opencc
FORT = openf95
NVCC = nvcc
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
OPTS = -O3 -DADD_ -DCUBLAS_GFORTRAN
F77OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_
NVOPTS = -O3 -DADD_ --compiler-options -fno-strict-aliasing -DUNIX
LDOPTS = -fPIC -Xlinker
LIB = -lstdc++ -lcudart -lcblas -lcublas -llapack -lpthread -lfortran -lffio -lm -lrt -lacml_mp -mp
failure errors:
../lib/libmagma.a(dlaex1.o): In function `magma_dlaex1':
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/src/dlaex1.cpp:203: undefined reference to `magma_dlaed2_'
collect2: ld returned 1 exit status
make[1]: *** [testing_dsyevd_gpu] Error 1
make[1]: Leaving directory `/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing'
make: *** [test] Error 2
I've tried that bit with:
#define magma_dlaed2 FORTRAN_NAME( magma_dlaed2_, MAGMA_DLAED2_ )
in src/dlaex1.cpp
this gives me:
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:34: undefined reference to `cublas_init__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:49: undefined reference to `cublas_alloc__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:55: undefined reference to `cublas_alloc__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:74: undefined reference to `cublas_set_matrix__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:77: undefined reference to `cublas_set_matrix__'
...
I wonder if anybody's had any success with open64 & ACML?
I've started moving back to older revisions of ACML (begun with 5.3.0) , my make.inc:
CC = opencc
FORT = openf95
NVCC = nvcc
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
OPTS = -O3 -DADD_ -DCUBLAS_GFORTRAN
F77OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_
NVOPTS = -O3 -DADD_ --compiler-options -fno-strict-aliasing -DUNIX
LDOPTS = -fPIC -Xlinker
LIB = -lstdc++ -lcudart -lcblas -lcublas -llapack -lpthread -lfortran -lffio -lm -lrt -lacml_mp -mp
failure errors:
../lib/libmagma.a(dlaex1.o): In function `magma_dlaex1':
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/src/dlaex1.cpp:203: undefined reference to `magma_dlaed2_'
collect2: ld returned 1 exit status
make[1]: *** [testing_dsyevd_gpu] Error 1
make[1]: Leaving directory `/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing'
make: *** [test] Error 2
I've tried that bit with:
#define magma_dlaed2 FORTRAN_NAME( magma_dlaed2_, MAGMA_DLAED2_ )
in src/dlaex1.cpp
this gives me:
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:34: undefined reference to `cublas_init__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:49: undefined reference to `cublas_alloc__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:55: undefined reference to `cublas_alloc__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:74: undefined reference to `cublas_set_matrix__'
/home/pe243/rpmbuild/tar.src/magma-1.3.0-open64/testing/testing_zgetrf_gpu_f.F90:77: undefined reference to `cublas_set_matrix__'
...
I wonder if anybody's had any success with open64 & ACML?