mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-27 21:55:16 -04:00
Preparation for LIBXSMM 2.0 (#1879)
* Suppressed LIBXSMM_VERSION_MAJOR, LIBXSMM_VERSION_MINOR, and LIBXSMM_VERSION_PATCH.
This commit is contained in:
parent
6eac975bc5
commit
9e61525887
2 changed files with 11 additions and 2 deletions
|
|
@ -41,7 +41,10 @@ void dgemm_simplified(dgemm_params *const m) {
|
|||
if (m == NULL)
|
||||
abort();
|
||||
|
||||
#if defined(__LIBXSMM)
|
||||
#if defined(__LIBXSMM) && \
|
||||
LIBXSMM_VERSION4(1, 17, 0, 2079) > \
|
||||
LIBXSMM_VERSION4(LIBXSMM_VERSION_MAJOR, LIBXSMM_VERSION_MINOR, \
|
||||
LIBXSMM_VERSION_UPDATE, LIBXSMM_VERSION_PATCH)
|
||||
if (m->use_libxsmm && m->op2 == 'N') {
|
||||
/* we are in row major but xsmm is in column major */
|
||||
m->prefetch = LIBXSMM_PREFETCH_AUTO;
|
||||
|
|
@ -106,7 +109,10 @@ void batched_dgemm_simplified(dgemm_params *const m, const int batch_size) {
|
|||
assert(m != NULL);
|
||||
assert(batch_size > 0);
|
||||
|
||||
#if defined(__LIBXSMM)
|
||||
#if defined(__LIBXSMM) && \
|
||||
LIBXSMM_VERSION4(1, 17, 0, 2079) > \
|
||||
LIBXSMM_VERSION4(LIBXSMM_VERSION_MAJOR, LIBXSMM_VERSION_MINOR, \
|
||||
LIBXSMM_VERSION_UPDATE, LIBXSMM_VERSION_PATCH)
|
||||
if (m->use_libxsmm && m->op2 == 'N') {
|
||||
/* we are in row major but xsmm is in column major */
|
||||
m->prefetch = LIBXSMM_PREFETCH_AUTO;
|
||||
|
|
|
|||
|
|
@ -58,6 +58,9 @@ FLAG_EXCEPTIONS = (
|
|||
r"__T_C_G0",
|
||||
r"__YUKAWA",
|
||||
r"__cplusplus",
|
||||
r"LIBXSMM_VERSION_MAJOR",
|
||||
r"LIBXSMM_VERSION_MINOR",
|
||||
r"LIBXSMM_VERSION_PATCH",
|
||||
)
|
||||
|
||||
FLAG_EXCEPTIONS_RE = re.compile(r"|".join(FLAG_EXCEPTIONS))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue