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

Fixing CMakeLists.txt for intel compilers #388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

landinjm
Copy link
Contributor

@landinjm landinjm commented Jan 6, 2025

Description

project() must be declared after deal_ii_initialize_cached_variables() to properly find the mpi compilers.

Closes #373

@david-montiel-t
Copy link
Contributor

Unfortunately, it still does not work.

The Intel compiler is correctly identified. But we still see the following issues:

  • The core library still compiles (but only in series)

  • The application (allenCahn) produces the following compilation error:

[ 25%] Building CXX object CMakeFiles/main_debug.dir/home/dmontiel/PRISMS-PF_CMakefix/phaseField/applications/main.cc.o
[ 50%] Linking CXX executable main-debug
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:225: error: undefined reference to 'std::filesystem::rename(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:231: error: undefined reference to 'std::filesystem::remove(std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:241: error: undefined reference to 'std::filesystem::rename(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:225: error: undefined reference to 'std::filesystem::rename(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:231: error: undefined reference to 'std::filesystem::remove(std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:241: error: undefined reference to 'std::filesystem::rename(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:231: error: undefined reference to 'std::filesystem::remove(std::filesystem::__cxx11::path const&)'
/home/dmontiel/PRISMS-PF_CMakefix/phaseField/src/matrixfree/checkpoint.cc:231: error: undefined reference to 'std::filesystem::remove(std::filesystem::__cxx11::path const&)'
/usr/include/c++/8/bits/fs_path.h:185: error: undefined reference to 'std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/include/c++/8/bits/fs_ops.h:121: error: undefined reference to 'std::filesystem::status(std::filesystem::__cxx11::path const&)'
../../libprisms-pf-debug.a(checkpoint.cc.o):checkpoint.cc:DW.ref._ZTINSt10filesystem7__cxx1116filesystem_errorE: error: undefined reference to 'typeinfo for std::filesystem::__cxx11::filesystem_error'
make[2]: *** [CMakeFiles/main_debug.dir/build.make:107: main-debug] Error 1
make[1]: *** [CMakeFiles/Makefile2:193: CMakeFiles/main_debug.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

  • In addition, if we try to compile the core library in parallel, we get the following error:

icpc: error #10106: Fatal error in /sw/pkgs/arc/intel/2022.1.2/compiler/2022.0.2/linux/bin/intel64/../../bin/intel64/mcpcom

@landinjm
Copy link
Contributor Author

landinjm commented Jan 8, 2025

If this is on the login node, there is only 2 cpus and 4GB of memory.

I'd estimate at least 4GB of memory per mpi process when compiling is necessary.

@landinjm landinjm changed the title Fixing CMakeLists.txt for intel compilers Fixing CMakeLists.txt for intel & clang compilers Jan 13, 2025
@landinjm landinjm changed the title Fixing CMakeLists.txt for intel & clang compilers Fixing CMakeLists.txt for intel compilers Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with Intel Module in UMich Great Lakes cluster
2 participants