Details
While using AMD AOCC/AOCL (5.0.0.1 version, accessed today) to build ABACUS, I encounter error in the last linking step
[100%] Built target lr
[100%] Building CXX object CMakeFiles/abacus.dir/source/main.cpp.o
[100%] Linking CXX executable abacus
ld.lld: error: undefined symbol: container::kernels::set_memory<std::complex<double>, container::DEVICE_GPU>::operator()(std::complex<double>*, std::complex<double> const&, unsigned long const&)>>> referenced by propagator.h:94 (/home/mikoto/tests/test2/abacus-develop/source/module_hamilt_lcao/module_tddft/propagator.h:94)
>>> source/module_hamilt_lcao/module_tddft/CMakeFiles/tddft.dir/propagator_cn2.cpp.o:(container::Tensor module_tddft::create_identity_matrix<std::complex<double>>(int, container::DeviceType))
>>> did you mean: container::kernels::set_memory<std::complex<double>, container::DEVICE_CPU>::operator()(std::complex<double>*, std::complex<double> const&, unsigned long const&)
>>> defined in: source/module_base/module_container/libcontainer.a(memory_impl.cpp.o)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [CMakeFiles/abacus.dir/build.make:1198: abacus] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1247: CMakeFiles/abacus.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
So:
- How can we try to solve this problem?
- Does ABACUS support compilation like
-
-
-
Other compilation setting:
gcc/g++/gfortran 11.4
clang/clang++:
AMD clang version 17.0.6 (CLANG: AOCC_5.0.0-Build#1377 2024_09_24)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /data/softwares/AMD/5.0.0-aocl-aocc/aocc/bin
LAPACK: OpenBLAS (by toolchain) or AOCL
ScaLAPACK, FFTW:From AOCL
ELPA: compiled by toolchain
Hardware: AMD EPYC 7b12
OS: Ubuntu 22.04
Notice: flang cannot be used, which will lead to error in build ELPA.
flang: error: unsupported option '--whole-archive'
flang: error: unsupported option '--no-whole-archive'
flang: error: unknown argument: '-soname'
flang: error: no such file or directory: 'libelpa_openmp.so.19'
Task list for Issue attackers (only for developers)
Details
While using AMD AOCC/AOCL (5.0.0.1 version, accessed today) to build ABACUS, I encounter error in the last linking step
So:
Other compilation setting:
gcc/g++/gfortran 11.4
clang/clang++:
LAPACK: OpenBLAS (by toolchain) or AOCL
ScaLAPACK, FFTW:From AOCL
ELPA: compiled by toolchain
Hardware: AMD EPYC 7b12
OS: Ubuntu 22.04
Notice: flang cannot be used, which will lead to error in build ELPA.
Have you read FAQ on the online manual http://abacus.deepmodeling.com/en/latest/community/faq.html
Task list for Issue attackers (only for developers)