issues
search
cp2k
/
dbcsr
DBCSR: Distributed Block Compressed Sparse Row matrix library
https://cp2k.github.io/dbcsr/
GNU General Public License v2.0
135
stars
46
forks
source link
ocl: mute warnings about potentially uninitialized data
#652
Closed
hfp
closed
1 year ago
hfp
commented
1 year ago
Attempt to avoid warnings about potentially uninitialized data (
https://groups.google.com/g/cp2k/c/plxdnT5hqi4
- struct={0}).
In case of loading a program from binary representation, discover kernels in program, and adopt last kernel listed (fallback).
Support loading binary/precompiled kernels. Rely on clCreateProgramWithBinary by default rather than clCreateProgramWithIL.
Refactored c_dbcsr_acc_opencl_kernel (c_dbcsr_acc_opencl_build_flags). Avoid dumping kernels if actually loaded from dump.
Removed c_dbcsr_acc_opencl_stristr and use libxsmm_stristr (LIBXSMM is a hard dependency).
Extended c_dbcsr_acc_opencl_kernel to allow filename instead of source code.
Include compilation flags as comment into dumped source code (ACC_OPENCL_DUMP=1).