Skip to content

update CP2K easyblock to use -D__MKL for CP2K versions newer than 2.3#2586

Merged
akesandgren merged 1 commit intoeasybuilders:developfrom
ppomorsk:patch-1
Nov 22, 2021
Merged

update CP2K easyblock to use -D__MKL for CP2K versions newer than 2.3#2586
akesandgren merged 1 commit intoeasybuilders:developfrom
ppomorsk:patch-1

Conversation

@ppomorsk
Copy link
Copy Markdown
Contributor

The last version of CP2K which used the flag -D__FFTMKL is 2.3. The later versions use -D__MKL . This change is necessary to have psmp version (MPI/OpenMP) work properly, as without it the executable will build but a check for thread safety fails at runtime when running with more than 1 thread.

In INSTALL.md instructions of latest version of 8.2 of CP2K it is stated: "if compiling with MKL you must
define -D__MKL to ensure the code is thread-safe."

A change like this has been suggested in issue "suggested enhancements to CP2K easyblock #1086"

The last version of CP2K which used the flag -D__FFTMKL is 2.3.  The later versions use -D__MKL .  This change is necessary to have psmp version (MPI/OpenMP) work properly, as without it the executable will build but a check for thread safety fails at runtime when running with more than 1 thread.

In INSTALL.md instructions of latest version of 8.2 of CP2K it is stated: "if compiling with MKL you must
define `-D__MKL` to ensure the code is thread-safe."

A change like this has been suggested in issue "suggested enhancements to CP2K easyblock easybuilders#1086"
@boegel boegel changed the title Update cp2k.py to use -D__MKL update CP2K easyblock to use -D__MKL Sep 29, 2021
@boegel boegel added the bug fix label Sep 29, 2021
@boegel boegel added this to the next release (4.5.0?) milestone Sep 29, 2021
Copy link
Copy Markdown
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akesandgren
Copy link
Copy Markdown
Contributor

Going in, thanks @ppomorsk!

@akesandgren akesandgren merged commit 43616ca into easybuilders:develop Nov 22, 2021
@boegel boegel changed the title update CP2K easyblock to use -D__MKL update CP2K easyblock to use -D__MKL for CP2K v2.3 Nov 24, 2021
@boegel boegel changed the title update CP2K easyblock to use -D__MKL for CP2K v2.3 update CP2K easyblock to use -D__MKL for CP2K versions newer than 2.3 Nov 24, 2021
@boegel
Copy link
Copy Markdown
Member

boegel commented Dec 8, 2021

Test report by @boegel

Overview of tested easyconfigs (in order)

  • SUCCESS CP2K-5.1-intel-2020a.eb
  • SUCCESS CP2K-6.1-intel-2020a.eb
  • SUCCESS CP2K-7.1-intel-2020a.eb
  • SUCCESS CP2K-7.1-intel-2020b.eb

Build succeeded for 4 out of 4 (4 easyconfigs in total)
node3108.skitty.os - Linux centos linux 7.9.2009, x86_64, Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz (skylake_avx512), Python 3.6.8
See https://gist.github.com/a0bb63d77c2a5c911520d8187534c95b for a full test report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants