You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to build SLATE on Frontier with the Cray compiler leads to this linking error:
[100%] Linking CXX executable testsweeper_tester
cd /ccs/home/jschuchart/src/slate/slate/build/testsweeper/test && /autofs/nccs-svm1_sw/frontier/spack-envs/base/opt/linux-sles15-x86_64/gcc-7.5.0/cmake-3.23.2-4r4mpiba7cwdw2hlakh5i7tchi64s3qd/bin/cmake -E cmake_link_script CMakeFiles/testsweeper_tester.dir/link.txt --verbose=1
/opt/cray/pe/craype/2.7.23/bin/CC -O3 -DNDEBUG CMakeFiles/testsweeper_tester.dir/test.cc.o CMakeFiles/testsweeper_tester.dir/test_sort.cc.o -o testsweeper_tester -Wl,-rpath,/ccs/home/jschuchart/src/slate/slate/build/testsweeper ../libtestsweeper.so
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: _cray$mt_kmpc_fork_call_with_flags
>>> referenced by ../libtestsweeper.so
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: omp_get_wtime
>>> referenced by ../libtestsweeper.so
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_master
>>> referenced by ../libtestsweeper.so
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: omp_get_num_threads
>>> referenced by ../libtestsweeper.so
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_end_master
>>> referenced by ../libtestsweeper.so
ld.lld: error: undefined reference due to --no-allow-shlib-undefined: omp_get_thread_num
>>> referenced by ../libtestsweeper.so
Did it work with a different ROCm version, when you closed the issue?
What version of SLATE (git log --oneline -n 1)?
I presume you've done git submodule update so the submodules are in sync with the SLATE version.
Description
Trying to build SLATE on Frontier with the Cray compiler leads to this linking error:
Steps To Reproduce
It appears that the testsweeper should depend on the OpenMP target. If I manually run the compiler command with
-fopenmp
the link succeeds:Environment
The text was updated successfully, but these errors were encountered: