Skip to content

Commit

Permalink
ocl: ensure compatibility with LIBXSMM 2.0 (#672)
Browse files Browse the repository at this point in the history
* Updated LIBXSMM (Daint-CI).
  • Loading branch information
hfp authored May 15, 2023
1 parent e307851 commit fdba3c2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/daint.cscs.ch/ocl.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [ ! -d "${HOME}/libxsmm" ]; then
fi
cd "${HOME}/libxsmm"
git fetch
git checkout 775d367453256d1c514b809aeac0f07d3a3cdcef
git checkout edc62775a227e23f789b78e7b5ca9d435184fa56
make -j
cd ..

Expand Down
7 changes: 6 additions & 1 deletion src/acc/acc_bench_smm.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
# include <libxsmm_source.h>
# else
# include <libxsmm.h>
# include <libxsmm_sync.h>
# if !defined(LIBXSMM_TIMER_H)
# include <utils/libxsmm_timer.h>
# endif
# if !defined(LIBXSMM_SYNC_H)
# include <libxsmm_sync.h>
# endif
# endif
# if defined(LIBXSMM_VERSION_NUMBER) && LIBXSMM_VERSION4(1, 17, 0, 0) < LIBXSMM_VERSION_NUMBER
# define USE_LIBXSMM
Expand Down
6 changes: 6 additions & 0 deletions src/acc/acc_bench_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
# include <libxsmm_source.h>
# else
# include <libxsmm.h>
# if !defined(LIBXSMM_TIMER_H)
# include <utils/libxsmm_timer.h>
# endif
# if !defined(LIBXSMM_SYNC_H)
# include <libxsmm_sync.h>
# endif
# endif
# if defined(LIBXSMM_VERSION_NUMBER) && LIBXSMM_VERSION4(1, 17, 0, 0) < LIBXSMM_VERSION_NUMBER
# define USE_LIBXSMM
Expand Down
7 changes: 6 additions & 1 deletion src/acc/opencl/acc_opencl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@

#if defined(__LIBXSMM) && !defined(LIBXSMM_DEFAULT_CONFIG)
# include <libxsmm.h>
# include <libxsmm_sync.h>
# if !defined(LIBXSMM_TIMER_H)
# include <utils/libxsmm_timer.h>
# endif
# if !defined(LIBXSMM_SYNC_H)
# include <libxsmm_sync.h>
# endif
#else
/* OpenCL backend depends on LIBXSMM */
# include <libxsmm_source.h>
Expand Down

0 comments on commit fdba3c2

Please sign in to comment.