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

HOMME, Aurora: Fix MKL flags from Intel MKL or oneMKL #6720

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

abagusetty
Copy link
Contributor

@abagusetty abagusetty commented Oct 30, 2024

Add appropriate flags for MKL
-mkl for older Intel MKL modules
-qmkl for newer oneMKL modules

-mkl is deprecated with newer oneMKL library leading to linking issues referring to the MKL functions

@abagusetty abagusetty changed the title [Aurora] Fix MKL flags from Intel MKL or oneMKL [Aurora] HOMME: Fix MKL flags from Intel MKL or oneMKL Oct 30, 2024
@oksanaguba oksanaguba changed the title [Aurora] HOMME: Fix MKL flags from Intel MKL or oneMKL HOMME, Aurora: Fix MKL flags from Intel MKL or oneMKL Oct 30, 2024
@oksanaguba
Copy link
Contributor

running tests now

@oksanaguba
Copy link
Contributor

getting

CMake Error at CMakeLists.txt:261 (find_package):
  By not providing "FindMKL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "MKL", but
  CMake did not find one.

  Could not find a package configuration file provided by "MKL" with any of
  the following names:

    MKLConfig.cmake
    mkl-config.cmake

  Add the installation prefix of "MKL" to CMAKE_PREFIX_PATH or set "MKL_DIR"
  to a directory containing one of the above files.  If "MKL" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!

@abagusetty
Copy link
Contributor Author

getting

CMake Error at CMakeLists.txt:261 (find_package):
  By not providing "FindMKL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "MKL", but
  CMake did not find one.

  Could not find a package configuration file provided by "MKL" with any of
  the following names:

    MKLConfig.cmake
    mkl-config.cmake

  Add the installation prefix of "MKL" to CMAKE_PREFIX_PATH or set "MKL_DIR"
  to a directory containing one of the above files.  If "MKL" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!

Strange that find_package(MKL) doesnt work on this machine. Could you post the name of the files under $MKLROOT/lib/cmake

@oksanaguba
Copy link
Contributor

there is no cmake folder there

[ac.onguba@chrlogin2 HOMME_P24.f19_g16_rx1.A.chrysalis_intel.C.20241030_121333_ea825p]$ ls $MKLROOT/lib/cmake
ls: cannot access '/gpfs/fs1/soft/chrysalis/spack/opt/spack/linux-centos8-x86_64/intel-20.0.4/intel-mkl-2020.4.304-g2qaxzf/compilers_and_libraries_2020.4.304/linux/mkl/lib/cmake': No such file or directory
[ac.onguba@chrlogin2 HOMME_P24.f19_g16_rx1.A.chrysalis_intel.C.20241030_121333_ea825p]$ ls $MKLROOT/lib
ia32  ia32_lin  intel64  intel64_lin

@abagusetty
Copy link
Contributor Author

Can you find if there are any files with extensions *.cmake under $MKLROOT, if there are any let me know the path. Looks like path is the issue here

@oksanaguba
Copy link
Contributor

none

[ac.onguba@chr-0493 mkl]$ find  ./ -name *so | wc -l
59
[ac.onguba@chr-0493 mkl]$ find  ./ -name *cmake | wc -l
0
[ac.onguba@chr-0493 mkl]$ pwd
/gpfs/fs1/soft/chrysalis/spack/opt/spack/linux-centos8-x86_64/intel-20.0.4/intel-mkl-2020.4.304-g2qaxzf/compilers_and_libraries_2020.4.304/linux/mkl

@rljacob rljacob added Aurora HOMME standalone issues with the standalone HOMME code that dont impact E3SM labels Oct 30, 2024
oksanaguba added a commit that referenced this pull request Oct 30, 2024
Add appropriate flags for MKL
-mkl for older Intel MKL modules
-qmkl for newer oneMKL modules

-mkl is deprecated with newer oneMKL library leading
to linking issues referring to the MKL functions
@oksanaguba
Copy link
Contributor

bfb for master + this PR on chrysalis for homme and developer. in next.

@oksanaguba oksanaguba self-requested a review October 31, 2024 21:30
@oksanaguba oksanaguba merged commit 834203f into E3SM-Project:master Oct 31, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aurora HOMME standalone issues with the standalone HOMME code that dont impact E3SM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants