Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiled errors using intel compiler #76

Open
saitoasukakawaii opened this issue Jun 28, 2022 · 2 comments
Open

Compiled errors using intel compiler #76

saitoasukakawaii opened this issue Jun 28, 2022 · 2 comments

Comments

@saitoasukakawaii
Copy link

Dear all,
I use Intel oneAPI 2022.1.1 to compile svFSI with following command:
cmake \ -DCMAKE_C_COMPILER:PATH=/opt/intel/oneapi/compiler/2022.0.1/linux/bin/intel64/icc \ -DCMAKE_CXX_COMPILER:PATH=/opt/intel/oneapi/compiler/2022.0.1/linux/bin/intel64/icpc \ -DCMAKE_Fortran_COMPILER:PATH=/opt/intel/oneapi/compiler/2022.0.1/linux/bin/intel64/ifort \ -DCMAKE_PREFIX_PATH:PATH=/home/tfblab/compile_with_intel_compiler/trilinos_13_2_0/lib/cmake/Trilinos \ -DCMAKE_BUILD_TYPE:STRING="Release" \ -DSV_BUILD_TYPE_DIR:STRING="Release" \ ..
The last step of linking to the exec svFSI, some errors are thrown
[ 69%] Linking Fortran executable ../../bin/svFSI ifort: command line remark #10412: option '-mkl' is deprecated and will be removed in a future release. Please use the replacement option '-qmkl' ld: CMakeFiles/svFSI.dir/COMU.f.o(.text+0x1a0d): unresolvable R_X86_64_32S relocation against symbol mpipriv1_'
make[5]: *** [Source/svFSI/CMakeFiles/svFSI.dir/build.make:1602: bin/svFSI] Error 1
make[4]: *** [CMakeFiles/Makefile2:430: Source/svFSI/CMakeFiles/svFSI.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/svFSI.dir/build.make:86: svFSI-prefix/src/svFSI-stamp/svFSI-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/svFSI.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
`
Could any one help me out?

Best
Chen

@CZHU20
Copy link
Member

CZHU20 commented Jul 1, 2022

Based on the error message, it seems that -mkl is deprecated. In svFSI, this link information is provided here:

target_link_libraries(${SV_SVFSI_EXE} -mkl)

Can you change it to -qmkl and report back if this solves your problem? Thanks.

@saitoasukakawaii
Copy link
Author

I change to -qmkl and same error happened, I think the error is caused by linking the static bundle packages (.a) of ”zlib;parmetis;metis“ in Third part directory. While the Trilinos package is dynamic (.so).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants