From 6c23d95ac3f6100898dda2fb01e37a3c55ee65f5 Mon Sep 17 00:00:00 2001 From: Hans Pabst Date: Thu, 30 May 2024 10:00:34 +0200 Subject: [PATCH] ocl: changed license to BSD-3-Clause * Harmonize with CP2K/offload interface/component. * Added license header (pre-commit check). * Added LICENSE.md (src/acc/opencl). --- .pre-commit/headers/c_cpp.3 | 8 ++++++++ src/acc/opencl/acc_opencl.c | 2 +- src/acc/opencl/acc_opencl.h | 2 +- src/acc/opencl/acc_opencl_event.c | 2 +- src/acc/opencl/acc_opencl_mem.c | 2 +- src/acc/opencl/acc_opencl_stream.c | 2 +- src/acc/opencl/common/opencl_atomics.h | 2 +- src/acc/opencl/common/opencl_common.h | 2 +- src/acc/opencl/smm/kernels/multiply.cl | 2 +- src/acc/opencl/smm/kernels/transpose.cl | 2 +- src/acc/opencl/smm/opencl_libsmm.c | 2 +- src/acc/opencl/smm/opencl_libsmm.h | 2 +- 12 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 .pre-commit/headers/c_cpp.3 diff --git a/.pre-commit/headers/c_cpp.3 b/.pre-commit/headers/c_cpp.3 new file mode 100644 index 00000000000..dffab6af0d4 --- /dev/null +++ b/.pre-commit/headers/c_cpp.3 @@ -0,0 +1,8 @@ +/*------------------------------------------------------------------------------------------------*/ +/* Copyright (C) by the DBCSR developers group - All rights reserved */ +/* This file is part of the DBCSR library. */ +/* */ +/* For information on the license, see the LICENSE file. */ +/* For further information please visit https://dbcsr.cp2k.org */ +/* SPDX-License-Identifier: BSD-3-Clause */ +/*------------------------------------------------------------------------------------------------*/ diff --git a/src/acc/opencl/acc_opencl.c b/src/acc/opencl/acc_opencl.c index 034d3df92c1..d7d55289775 100644 --- a/src/acc/opencl/acc_opencl.c +++ b/src/acc/opencl/acc_opencl.c @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #if defined(__OPENCL) # include "acc_opencl.h" diff --git a/src/acc/opencl/acc_opencl.h b/src/acc/opencl/acc_opencl.h index 5a074805a61..cd6639983fd 100644 --- a/src/acc/opencl/acc_opencl.h +++ b/src/acc/opencl/acc_opencl.h @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #ifndef ACC_OPENCL_H #define ACC_OPENCL_H diff --git a/src/acc/opencl/acc_opencl_event.c b/src/acc/opencl/acc_opencl_event.c index 7fde985a04e..34b0782f05d 100644 --- a/src/acc/opencl/acc_opencl_event.c +++ b/src/acc/opencl/acc_opencl_event.c @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #if defined(__OPENCL) # include "acc_opencl.h" diff --git a/src/acc/opencl/acc_opencl_mem.c b/src/acc/opencl/acc_opencl_mem.c index fece7545bfc..41fc76519c0 100644 --- a/src/acc/opencl/acc_opencl_mem.c +++ b/src/acc/opencl/acc_opencl_mem.c @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #if defined(__OPENCL) # include "acc_opencl.h" diff --git a/src/acc/opencl/acc_opencl_stream.c b/src/acc/opencl/acc_opencl_stream.c index 4a90f0dc068..adb414a3a66 100644 --- a/src/acc/opencl/acc_opencl_stream.c +++ b/src/acc/opencl/acc_opencl_stream.c @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #if defined(__OPENCL) # include "acc_opencl.h" diff --git a/src/acc/opencl/common/opencl_atomics.h b/src/acc/opencl/common/opencl_atomics.h index 7809a5216cd..ac2a799f792 100644 --- a/src/acc/opencl/common/opencl_atomics.h +++ b/src/acc/opencl/common/opencl_atomics.h @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #ifndef OPENCL_ATOMICS_H #define OPENCL_ATOMICS_H diff --git a/src/acc/opencl/common/opencl_common.h b/src/acc/opencl/common/opencl_common.h index e19b099955b..d41ee49acc5 100644 --- a/src/acc/opencl/common/opencl_common.h +++ b/src/acc/opencl/common/opencl_common.h @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #ifndef OPENCL_COMMON_H #define OPENCL_COMMON_H diff --git a/src/acc/opencl/smm/kernels/multiply.cl b/src/acc/opencl/smm/kernels/multiply.cl index cb4562a5db3..b2e1de6a450 100644 --- a/src/acc/opencl/smm/kernels/multiply.cl +++ b/src/acc/opencl/smm/kernels/multiply.cl @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #include "../../common/opencl_atomics.h" diff --git a/src/acc/opencl/smm/kernels/transpose.cl b/src/acc/opencl/smm/kernels/transpose.cl index 3e5bbc75a29..0d30fa73709 100644 --- a/src/acc/opencl/smm/kernels/transpose.cl +++ b/src/acc/opencl/smm/kernels/transpose.cl @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ __attribute__((reqd_work_group_size(SWG, 1, 1))) kernel void FN( diff --git a/src/acc/opencl/smm/opencl_libsmm.c b/src/acc/opencl/smm/opencl_libsmm.c index e6656c90c29..58334d1fbff 100644 --- a/src/acc/opencl/smm/opencl_libsmm.c +++ b/src/acc/opencl/smm/opencl_libsmm.c @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #if defined(__OPENCL) # include "opencl_libsmm.h" diff --git a/src/acc/opencl/smm/opencl_libsmm.h b/src/acc/opencl/smm/opencl_libsmm.h index 8a354ca78ec..8e03b2e4565 100644 --- a/src/acc/opencl/smm/opencl_libsmm.h +++ b/src/acc/opencl/smm/opencl_libsmm.h @@ -4,7 +4,7 @@ /* */ /* For information on the license, see the LICENSE file. */ /* For further information please visit https://dbcsr.cp2k.org */ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: BSD-3-Clause */ /*------------------------------------------------------------------------------------------------*/ #ifndef OPENCL_LIBSMM_H #define OPENCL_LIBSMM_H