Skip to content

Commit

Permalink
ocl: updated tuned parameters
Browse files Browse the repository at this point in the history
- Disable code controlling Intel OpenCL kernel-cache (ACC_OPENCL_CACHEDIR).
- Disable kernel-cache when auto-tuning kernels (NEO_CACHE_PERSISTENT=0).
- Link OpenCL ICD-loader in a version-specific fashion (opencl/Makefile).
- Allow to explicitly disabled checks (in order to tune larger kernels).
- Improved MAXLU, and unrolling (1<LU).
- Updated LIBXSMM (Daint-CI).
  • Loading branch information
hfp committed Nov 16, 2023
1 parent cf41a08 commit 41db941
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 75 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 ab992663b97571c9306ac01f6ca9a4a76bb5b559
git checkout b5228c71ccdec143eb8461f40213d41676ea245a
make -j
cd ..

Expand Down
2 changes: 1 addition & 1 deletion src/acc/opencl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ else
ifneq (,$(wildcard $(OPENCL_LIB)))
LDFLAGS += $(OPENCL_LIB)
else
LDFLAGS += -lOpenCL
LDFLAGS += -l:libOpenCL.so.1
endif
endif

Expand Down
2 changes: 1 addition & 1 deletion src/acc/opencl/acc_opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# if !defined(ACC_OPENCL_TEMPDIR) && 1
# define ACC_OPENCL_TEMPDIR "/tmp"
# endif
# if !defined(ACC_OPENCL_CACHEDIR) && 1
# if !defined(ACC_OPENCL_CACHEDIR) && 0
# define ACC_OPENCL_CACHEDIR ".cl_cache"
# endif
# if !defined(ACC_OPENCL_CPPBIN) && 1
Expand Down
4 changes: 2 additions & 2 deletions src/acc/opencl/smm/kernels/multiply.cl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#define MAX(A, B) ((A) < (B) ? (B) : (A))

#if !defined(LU) || (-1 == LU) || (1 < LU)
#if !defined(LU) || (-1 == LU)
# define UNROLL_OUTER(N)
# define UNROLL(N)
#else
# if (1 == LU)
# if (1 <= LU)
# define UNROLL_OUTER(N) UNROLL_FORCE(1)
# else
# define UNROLL_OUTER(N) UNROLL_FORCE(N)
Expand Down
Loading

0 comments on commit 41db941

Please sign in to comment.