Skip to content

undefined reference #1120

@xuziye0327

Description

@xuziye0327
/usr/local/cmake/bin/cmake .. -DWITH_GPU=ON -DCMAKE_INSTALL_PREFIX=/usr/local/paddle -DOPENBLAS_ROOT=/opt/OpenBLAS/ -DCUDNN_ROOT=/usr/local/cuda-8.0/
make -j && make install
/usr/local/python2.7.13/lib/libpython2.7.a(posixmodule.o): In function `posix_tmpnam':
/root/tmp/Python-2.7.13/./Modules/posixmodule.c:7614: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/local/python2.7.13/lib/libpython2.7.a(posixmodule.o): In function `posix_tempnam':
/root/tmp/Python-2.7.13/./Modules/posixmodule.c:7561: warning: the use of `tempnam' is dangerous, better use `mkstemp'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getrf<float>(CBLAS_ORDER, int, int, float*, int, int*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:91: undefined reference to `LAPACKE_sgetrf'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getrf<double>(CBLAS_ORDER, int, int, double*, int, int*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:105: undefined reference to `LAPACKE_dgetrf'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getri<float>(CBLAS_ORDER, int, float*, int, int const*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:118: undefined reference to `LAPACKE_sgetri'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getri<double>(CBLAS_ORDER, int, double*, int, int const*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:131: undefined reference to `LAPACKE_dgetri'
collect2: error: ld returned 1 exit status
make[2]: *** [paddle/math/tests/test_lazyAssign] Error 1
make[1]: *** [paddle/math/tests/CMakeFiles/test_lazyAssign.dir/all] Error 2
/usr/local/python2.7.13/lib/libpython2.7.a(posixmodule.o): In function `posix_tmpnam':
/root/tmp/Python-2.7.13/./Modules/posixmodule.c:7614: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
/usr/local/python2.7.13/lib/libpython2.7.a(posixmodule.o): In function `posix_tempnam':
/root/tmp/Python-2.7.13/./Modules/posixmodule.c:7561: warning: the use of `tempnam' is dangerous, better use `mkstemp'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getrf<float>(CBLAS_ORDER, int, int, float*, int, int*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:91: undefined reference to `LAPACKE_sgetrf'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getrf<double>(CBLAS_ORDER, int, int, double*, int, int*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:105: undefined reference to `LAPACKE_dgetrf'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getri<float>(CBLAS_ORDER, int, float*, int, int const*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:118: undefined reference to `LAPACKE_sgetri'
../libpaddle_math.a(MathFunctions.cpp.o): In function `int paddle::getri<double>(CBLAS_ORDER, int, double*, int, int const*)':
/root/tmp/paddle/paddle/math/MathFunctions.cpp:131: undefined reference to `LAPACKE_dgetri'
collect2: error: ld returned 1 exit status
make[2]: *** [paddle/math/tests/test_Tensor] Error 1
make[1]: *** [paddle/math/tests/CMakeFiles/test_Tensor.dir/all] Error 2
make: *** [all] Error 2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions