From ddf6adf41edebd4e58b4d93f02e9cb40c857e173 Mon Sep 17 00:00:00 2001 From: Adarsh Yoga Date: Tue, 4 Apr 2023 17:16:58 +0000 Subject: [PATCH] Standardize and Update copyright information --- dpbench/__init__.py | 4 +-- dpbench/benchmarks/__init__.py | 4 +-- dpbench/benchmarks/black_scholes/__init__.py | 6 ++-- .../black_scholes/black_scholes_dpnp.py | 2 +- .../black_scholes/black_scholes_initialize.py | 2 +- .../black_scholes_numba_dpex_k.py | 5 ++- .../black_scholes_numba_dpex_n.py | 5 ++- .../black_scholes_numba_dpex_p.py | 5 ++- .../black_scholes/black_scholes_numba_n.py | 5 ++- .../black_scholes/black_scholes_numba_np.py | 5 ++- .../black_scholes/black_scholes_numba_npr.py | 5 ++- .../black_scholes/black_scholes_numpy.py | 2 +- .../black_scholes/black_scholes_python.py | 4 +-- .../black_scholes_sycl_native_ext/__init__.py | 4 +-- .../_black_scholes_kernel.hpp | 8 ++--- .../_black_scholes_sycl.cpp | 10 ++---- dpbench/benchmarks/dbscan/__init__.py | 5 +-- .../benchmarks/dbscan/dbscan_initialize.py | 2 +- .../benchmarks/dbscan/dbscan_numba_dpex_k.py | 5 ++- .../benchmarks/dbscan/dbscan_numba_dpex_p.py | 4 +-- dpbench/benchmarks/dbscan/dbscan_numba_n.py | 4 +-- dpbench/benchmarks/dbscan/dbscan_numba_npr.py | 4 +-- dpbench/benchmarks/dbscan/dbscan_python.py | 4 +-- .../dbscan/dbscan_sycl_native_ext/__init__.py | 4 +-- .../dbscan_sycl/_dbscan_kernel.hpp | 8 ++--- .../dbscan_sycl/_dbscan_sycl.cpp | 10 ++---- dpbench/benchmarks/gpairs/__init__.py | 5 +-- dpbench/benchmarks/gpairs/gpairs_dpnp.py | 2 +- .../benchmarks/gpairs/gpairs_initialize.py | 2 +- .../benchmarks/gpairs/gpairs_numba_dpex_k.py | 2 +- .../benchmarks/gpairs/gpairs_numba_dpex_p.py | 2 +- dpbench/benchmarks/gpairs/gpairs_numba_n.py | 2 +- dpbench/benchmarks/gpairs/gpairs_numba_npr.py | 2 +- dpbench/benchmarks/gpairs/gpairs_numpy.py | 2 +- .../gpairs/gpairs_sycl_native_ext/__init__.py | 4 +-- .../gpairs_sycl/_gpairs_kernel.hpp | 8 ++--- .../gpairs_sycl/_gpairs_sycl.cpp | 10 ++---- dpbench/benchmarks/kmeans/__init__.py | 5 +-- .../benchmarks/kmeans/kmeans_initialize.py | 2 +- .../benchmarks/kmeans/kmeans_numba_dpex_k.py | 2 +- .../benchmarks/kmeans/kmeans_numba_dpex_p.py | 2 +- dpbench/benchmarks/kmeans/kmeans_numba_n.py | 2 +- dpbench/benchmarks/kmeans/kmeans_numba_npr.py | 2 +- dpbench/benchmarks/kmeans/kmeans_python.py | 3 +- .../kmeans/kmeans_sycl_native_ext/__init__.py | 4 +-- .../kmeans_sycl/_kmeans_kernel.hpp | 2 +- .../kmeans_sycl/_kmeans_sycl.cpp | 10 ++---- dpbench/benchmarks/knn/__init__.py | 4 +-- dpbench/benchmarks/knn/knn_initialize.py | 2 +- dpbench/benchmarks/knn/knn_numba_dpex_k.py | 2 +- dpbench/benchmarks/knn/knn_numba_dpex_p.py | 2 +- dpbench/benchmarks/knn/knn_numba_npr.py | 2 +- dpbench/benchmarks/knn/knn_python.py | 2 +- .../knn/knn_sycl_native_ext/__init__.py | 4 +-- .../knn_sycl/_knn_kernel.hpp | 8 ++--- .../knn_sycl/_knn_sycl.cpp | 10 ++---- dpbench/benchmarks/l2_norm/__init__.py | 4 +-- dpbench/benchmarks/l2_norm/l2_norm_base.py | 2 +- dpbench/benchmarks/l2_norm/l2_norm_dpnp.py | 2 +- .../benchmarks/l2_norm/l2_norm_initialize.py | 2 +- .../l2_norm/l2_norm_numba_dpex_k.py | 2 +- .../l2_norm/l2_norm_numba_dpex_n.py | 2 +- dpbench/benchmarks/l2_norm/l2_norm_numba_n.py | 2 +- .../benchmarks/l2_norm/l2_norm_numba_np.py | 2 +- dpbench/benchmarks/l2_norm/l2_norm_numpy.py | 2 +- .../l2_norm_sycl_native_ext/__init__.py | 4 +-- .../l2_norm_sycl/_l2_norm_kernel.hpp | 8 ++--- .../l2_norm_sycl/_l2_norm_sycl.cpp | 10 ++---- .../benchmarks/pairwise_distance/__init__.py | 4 +-- .../pairwise_distance_base.py | 2 +- .../pairwise_distance_dpnp.py | 2 +- .../pairwise_distance_initialize.py | 2 +- .../pairwise_distance_numba_dpex_k.py | 2 +- .../pairwise_distance_numba_dpex_n.py | 2 +- .../pairwise_distance_numba_dpex_p.py | 2 +- .../pairwise_distance_numba_np.py | 2 +- .../pairwise_distance_numba_npr.py | 2 +- .../pairwise_distance_numpy.py | 2 +- .../__init__.py | 4 +-- .../_pairwise_distance_kernel.hpp | 8 ++--- .../_pairwise_distance_sycl.cpp | 11 ++---- dpbench/benchmarks/pca/__init__.py | 7 ++-- dpbench/benchmarks/pca/pca_dpnp.py | 2 +- dpbench/benchmarks/pca/pca_initialize.py | 2 +- dpbench/benchmarks/pca/pca_numba_dpex_n.py | 2 +- dpbench/benchmarks/pca/pca_numba_n.py | 2 +- dpbench/benchmarks/pca/pca_numba_np.py | 2 +- dpbench/benchmarks/pca/pca_numpy.py | 2 +- dpbench/benchmarks/rambo/__init__.py | 4 +-- dpbench/benchmarks/rambo/rambo_initialize.py | 2 +- .../benchmarks/rambo/rambo_numba_dpex_k.py | 2 +- .../benchmarks/rambo/rambo_numba_dpex_p.py | 2 +- dpbench/benchmarks/rambo/rambo_numba_n.py | 2 +- dpbench/benchmarks/rambo/rambo_numba_npr.py | 2 +- dpbench/benchmarks/rambo/rambo_numpy.py | 2 +- .../rambo/rambo_sycl_native_ext/__init__.py | 4 +-- .../rambo_sycl/_rambo_kernel.hpp | 8 ++--- .../rambo_sycl/_rambo_sycl.cpp | 10 ++---- dpbench/infrastructure/__init__.py | 2 +- dpbench/infrastructure/benchmark.py | 3 +- dpbench/infrastructure/datamodel.py | 4 +-- dpbench/infrastructure/dpcpp_framework.py | 4 +-- dpbench/infrastructure/dpnp_framework.py | 5 ++- dpbench/infrastructure/enums.py | 4 +-- dpbench/infrastructure/framework.py | 3 +- .../infrastructure/numba_dpex_framework.py | 4 +-- .../numba_dpex_kernel_framework.py | 4 +-- dpbench/infrastructure/numba_framework.py | 4 +-- dpbench/infrastructure/reporter.py | 2 ++ dpbench/infrastructure/timeout_decorator.py | 4 +++ dpbench/infrastructure/timer.py | 5 ++- dpbench/infrastructure/utilities.py | 2 ++ dpbench/runner.py | 4 +-- scripts/update_copyrights.py | 35 +++++++++++++++++++ 114 files changed, 215 insertions(+), 255 deletions(-) create mode 100644 scripts/update_copyrights.py diff --git a/dpbench/__init__.py b/dpbench/__init__.py index beb626fc..89f2cf8b 100644 --- a/dpbench/__init__.py +++ b/dpbench/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 License +# SPDX-License-Identifier: Apache-2.0 from .runner import ( list_available_benchmarks, diff --git a/dpbench/benchmarks/__init__.py b/dpbench/benchmarks/__init__.py index 25c88bfb..5985a8ff 100644 --- a/dpbench/benchmarks/__init__.py +++ b/dpbench/benchmarks/__init__.py @@ -1,3 +1,3 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/black_scholes/__init__.py b/dpbench/benchmarks/black_scholes/__init__.py index df90ae52..a334376e 100644 --- a/dpbench/benchmarks/black_scholes/__init__.py +++ b/dpbench/benchmarks/black_scholes/__init__.py @@ -1,10 +1,8 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ -Documentation for black_scholes function - The Black-Scholes program computes the price of a portfolio of options using partial differential equations. The entire computation performed by Black-Scholes is data-parallel diff --git a/dpbench/benchmarks/black_scholes/black_scholes_dpnp.py b/dpbench/benchmarks/black_scholes/black_scholes_dpnp.py index 709f2de9..1531f57e 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_dpnp.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_dpnp.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/black_scholes/black_scholes_initialize.py b/dpbench/benchmarks/black_scholes/black_scholes_initialize.py index e432f48f..50bbe53a 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_initialize.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_k.py b/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_k.py index 7794fcbb..44b5ab50 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_k.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_k.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from math import erf, exp, log, sqrt diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_n.py b/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_n.py index 8650ba15..9ce63188 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_n.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_n.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from math import erf diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_p.py b/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_p.py index a0e24d75..181ad376 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_p.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numba_dpex_p.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from math import erf, exp, log, sqrt diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numba_n.py b/dpbench/benchmarks/black_scholes/black_scholes_numba_n.py index e5f76be8..928e6018 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numba_n.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numba_n.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from math import erf, exp, log, sqrt diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numba_np.py b/dpbench/benchmarks/black_scholes/black_scholes_numba_np.py index ed5a2e9e..a4b1f275 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numba_np.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numba_np.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from math import erf diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numba_npr.py b/dpbench/benchmarks/black_scholes/black_scholes_numba_npr.py index bec34ff0..a78f898c 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numba_npr.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numba_npr.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from math import erf, exp, log, sqrt diff --git a/dpbench/benchmarks/black_scholes/black_scholes_numpy.py b/dpbench/benchmarks/black_scholes/black_scholes_numpy.py index 1c58efa7..52558a30 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_numpy.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_numpy.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/black_scholes/black_scholes_python.py b/dpbench/benchmarks/black_scholes/black_scholes_python.py index 790d87db..0b8754de 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_python.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_python.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from math import erf, exp, log, sqrt diff --git a/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/__init__.py b/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/__init__.py index 5ce7b466..90bbb90f 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .black_scholes_sycl._black_scholes_sycl import ( black_scholes as black_scholes_sycl, diff --git a/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_kernel.hpp b/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_kernel.hpp index 20b93ac4..59132c50 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_kernel.hpp +++ b/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// black-scholes benchmark. +// SPDX-License-Identifier: Apache-2.0 #include #include diff --git a/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_sycl.cpp b/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_sycl.cpp index b92d0223..f0bb0d5b 100644 --- a/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_sycl.cpp +++ b/dpbench/benchmarks/black_scholes/black_scholes_sycl_native_ext/black_scholes_sycl/_black_scholes_sycl.cpp @@ -1,12 +1,6 @@ -//==- _black_scholes_sycl.cpp - Python native extension of Black-Scholes ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// black-scholes benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_black_scholes_kernel.hpp" #include diff --git a/dpbench/benchmarks/dbscan/__init__.py b/dpbench/benchmarks/dbscan/__init__.py index f71b5ddf..7b453d15 100644 --- a/dpbench/benchmarks/dbscan/__init__.py +++ b/dpbench/benchmarks/dbscan/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ DBSCAN is a data clustering technique that that uses a @@ -28,4 +28,5 @@ ------- clusters: int number of clusters + """ diff --git a/dpbench/benchmarks/dbscan/dbscan_initialize.py b/dpbench/benchmarks/dbscan/dbscan_initialize.py index a47a9335..743806f5 100644 --- a/dpbench/benchmarks/dbscan/dbscan_initialize.py +++ b/dpbench/benchmarks/dbscan/dbscan_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/dbscan/dbscan_numba_dpex_k.py b/dpbench/benchmarks/dbscan/dbscan_numba_dpex_k.py index 59287341..ba23fe02 100644 --- a/dpbench/benchmarks/dbscan/dbscan_numba_dpex_k.py +++ b/dpbench/benchmarks/dbscan/dbscan_numba_dpex_k.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 import dpctl.tensor as dpt import numba as nb diff --git a/dpbench/benchmarks/dbscan/dbscan_numba_dpex_p.py b/dpbench/benchmarks/dbscan/dbscan_numba_dpex_p.py index 2fcfd16a..74b8f683 100644 --- a/dpbench/benchmarks/dbscan/dbscan_numba_dpex_p.py +++ b/dpbench/benchmarks/dbscan/dbscan_numba_dpex_p.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import numba as nb import numpy as np diff --git a/dpbench/benchmarks/dbscan/dbscan_numba_n.py b/dpbench/benchmarks/dbscan/dbscan_numba_n.py index 8ba9522f..647fe006 100644 --- a/dpbench/benchmarks/dbscan/dbscan_numba_n.py +++ b/dpbench/benchmarks/dbscan/dbscan_numba_n.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import numba as nb import numpy as np diff --git a/dpbench/benchmarks/dbscan/dbscan_numba_npr.py b/dpbench/benchmarks/dbscan/dbscan_numba_npr.py index 2fcfd16a..74b8f683 100644 --- a/dpbench/benchmarks/dbscan/dbscan_numba_npr.py +++ b/dpbench/benchmarks/dbscan/dbscan_numba_npr.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import numba as nb import numpy as np diff --git a/dpbench/benchmarks/dbscan/dbscan_python.py b/dpbench/benchmarks/dbscan/dbscan_python.py index 9b23e066..39d76cd8 100644 --- a/dpbench/benchmarks/dbscan/dbscan_python.py +++ b/dpbench/benchmarks/dbscan/dbscan_python.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import numpy as np from sklearn.cluster import DBSCAN diff --git a/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/__init__.py b/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/__init__.py index 4b9babeb..d460da81 100644 --- a/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .dbscan_sycl._dbscan_sycl import dbscan as dbscan_sycl diff --git a/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_kernel.hpp b/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_kernel.hpp index ab2a6c78..725e6923 100644 --- a/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_kernel.hpp +++ b/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// black-scholes benchmark. +// SPDX-License-Identifier: Apache-2.0 #include #include diff --git a/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_sycl.cpp b/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_sycl.cpp index 4f8f2282..efe4f4bd 100644 --- a/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_sycl.cpp +++ b/dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/dbscan_sycl/_dbscan_sycl.cpp @@ -1,12 +1,6 @@ -//==- _dbscan_sycl.cpp - Python native extension of Black-Scholes ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// black-scholes benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_dbscan_kernel.hpp" #include diff --git a/dpbench/benchmarks/gpairs/__init__.py b/dpbench/benchmarks/gpairs/__init__.py index 77a3b623..18aa6313 100644 --- a/dpbench/benchmarks/gpairs/__init__.py +++ b/dpbench/benchmarks/gpairs/__init__.py @@ -1,6 +1,7 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 + """ The gpairs benchmark calculates a weighted histogram of the distances between points in a 3D vector space. diff --git a/dpbench/benchmarks/gpairs/gpairs_dpnp.py b/dpbench/benchmarks/gpairs/gpairs_dpnp.py index 67dc833e..df4efe9a 100644 --- a/dpbench/benchmarks/gpairs/gpairs_dpnp.py +++ b/dpbench/benchmarks/gpairs/gpairs_dpnp.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_initialize.py b/dpbench/benchmarks/gpairs/gpairs_initialize.py index 3f2f3ebf..01d38c85 100644 --- a/dpbench/benchmarks/gpairs/gpairs_initialize.py +++ b/dpbench/benchmarks/gpairs/gpairs_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_numba_dpex_k.py b/dpbench/benchmarks/gpairs/gpairs_numba_dpex_k.py index 191ab7a7..f162faca 100644 --- a/dpbench/benchmarks/gpairs/gpairs_numba_dpex_k.py +++ b/dpbench/benchmarks/gpairs/gpairs_numba_dpex_k.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_numba_dpex_p.py b/dpbench/benchmarks/gpairs/gpairs_numba_dpex_p.py index 75586b4d..1e0f3c72 100644 --- a/dpbench/benchmarks/gpairs/gpairs_numba_dpex_p.py +++ b/dpbench/benchmarks/gpairs/gpairs_numba_dpex_p.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_numba_n.py b/dpbench/benchmarks/gpairs/gpairs_numba_n.py index dd36e66b..c4ab50a2 100644 --- a/dpbench/benchmarks/gpairs/gpairs_numba_n.py +++ b/dpbench/benchmarks/gpairs/gpairs_numba_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_numba_npr.py b/dpbench/benchmarks/gpairs/gpairs_numba_npr.py index 6db06342..3e27dcc1 100644 --- a/dpbench/benchmarks/gpairs/gpairs_numba_npr.py +++ b/dpbench/benchmarks/gpairs/gpairs_numba_npr.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_numpy.py b/dpbench/benchmarks/gpairs/gpairs_numpy.py index 89b4a933..40e5f032 100644 --- a/dpbench/benchmarks/gpairs/gpairs_numpy.py +++ b/dpbench/benchmarks/gpairs/gpairs_numpy.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/__init__.py b/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/__init__.py index f867e908..2e13c5a7 100644 --- a/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .gpairs_sycl._gpairs_sycl import gpairs as gpairs_sycl diff --git a/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_kernel.hpp b/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_kernel.hpp index 965f001f..671c9edd 100644 --- a/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_kernel.hpp +++ b/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// gpairs benchmark. +// SPDX-License-Identifier: Apache-2.0 #include diff --git a/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_sycl.cpp b/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_sycl.cpp index 8c5d3f81..604e5060 100644 --- a/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_sycl.cpp +++ b/dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/gpairs_sycl/_gpairs_sycl.cpp @@ -1,12 +1,6 @@ -//==- _gpairs_sycl.cpp - Python native extension of Black-Scholes ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// gpairs benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_gpairs_kernel.hpp" #include diff --git a/dpbench/benchmarks/kmeans/__init__.py b/dpbench/benchmarks/kmeans/__init__.py index 1da6ebbd..674d3502 100644 --- a/dpbench/benchmarks/kmeans/__init__.py +++ b/dpbench/benchmarks/kmeans/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ K-means is a clustering algorithm that partitions observations @@ -35,4 +35,5 @@ ------- clusters: int number of clusters + """ diff --git a/dpbench/benchmarks/kmeans/kmeans_initialize.py b/dpbench/benchmarks/kmeans/kmeans_initialize.py index fd08dea2..bb9fa34f 100644 --- a/dpbench/benchmarks/kmeans/kmeans_initialize.py +++ b/dpbench/benchmarks/kmeans/kmeans_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/kmeans/kmeans_numba_dpex_k.py b/dpbench/benchmarks/kmeans/kmeans_numba_dpex_k.py index d3088a3f..f41ec90e 100644 --- a/dpbench/benchmarks/kmeans/kmeans_numba_dpex_k.py +++ b/dpbench/benchmarks/kmeans/kmeans_numba_dpex_k.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/kmeans/kmeans_numba_dpex_p.py b/dpbench/benchmarks/kmeans/kmeans_numba_dpex_p.py index 9f6f0cc1..023d7cc7 100644 --- a/dpbench/benchmarks/kmeans/kmeans_numba_dpex_p.py +++ b/dpbench/benchmarks/kmeans/kmeans_numba_dpex_p.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/kmeans/kmeans_numba_n.py b/dpbench/benchmarks/kmeans/kmeans_numba_n.py index a1d35862..0b55828c 100644 --- a/dpbench/benchmarks/kmeans/kmeans_numba_n.py +++ b/dpbench/benchmarks/kmeans/kmeans_numba_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/kmeans/kmeans_numba_npr.py b/dpbench/benchmarks/kmeans/kmeans_numba_npr.py index 8f1620e2..a6efefb5 100644 --- a/dpbench/benchmarks/kmeans/kmeans_numba_npr.py +++ b/dpbench/benchmarks/kmeans/kmeans_numba_npr.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/kmeans/kmeans_python.py b/dpbench/benchmarks/kmeans/kmeans_python.py index 010dbfa1..73adbc21 100644 --- a/dpbench/benchmarks/kmeans/kmeans_python.py +++ b/dpbench/benchmarks/kmeans/kmeans_python.py @@ -1,8 +1,7 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 - from math import sqrt diff --git a/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/__init__.py b/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/__init__.py index b0e3eb11..0cda9658 100644 --- a/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .kmeans_sycl._kmeans_sycl import kmeans as kmeans_sycl diff --git a/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_kernel.hpp b/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_kernel.hpp index d3aea0b7..4dc3616e 100644 --- a/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_kernel.hpp +++ b/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_kernel.hpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2023 Intel Corporation +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // // SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_sycl.cpp b/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_sycl.cpp index e7e381bd..5f385f9e 100644 --- a/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_sycl.cpp +++ b/dpbench/benchmarks/kmeans/kmeans_sycl_native_ext/kmeans_sycl/_kmeans_sycl.cpp @@ -1,12 +1,6 @@ -//==- _kmeans_sycl.cpp - Python native extension of Kmeans ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// kmeans benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_kmeans_kernel.hpp" #include diff --git a/dpbench/benchmarks/knn/__init__.py b/dpbench/benchmarks/knn/__init__.py index da5d54a0..47c00d04 100644 --- a/dpbench/benchmarks/knn/__init__.py +++ b/dpbench/benchmarks/knn/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ Documentation for knn function diff --git a/dpbench/benchmarks/knn/knn_initialize.py b/dpbench/benchmarks/knn/knn_initialize.py index 3773b51b..bbbe9b6d 100644 --- a/dpbench/benchmarks/knn/knn_initialize.py +++ b/dpbench/benchmarks/knn/knn_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/knn/knn_numba_dpex_k.py b/dpbench/benchmarks/knn/knn_numba_dpex_k.py index effb1d84..c8fa6f3e 100644 --- a/dpbench/benchmarks/knn/knn_numba_dpex_k.py +++ b/dpbench/benchmarks/knn/knn_numba_dpex_k.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/knn/knn_numba_dpex_p.py b/dpbench/benchmarks/knn/knn_numba_dpex_p.py index 473ca489..367a7dd1 100644 --- a/dpbench/benchmarks/knn/knn_numba_dpex_p.py +++ b/dpbench/benchmarks/knn/knn_numba_dpex_p.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/knn/knn_numba_npr.py b/dpbench/benchmarks/knn/knn_numba_npr.py index 473ca489..367a7dd1 100644 --- a/dpbench/benchmarks/knn/knn_numba_npr.py +++ b/dpbench/benchmarks/knn/knn_numba_npr.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/knn/knn_python.py b/dpbench/benchmarks/knn/knn_python.py index 5fec155f..d53bfc25 100644 --- a/dpbench/benchmarks/knn/knn_python.py +++ b/dpbench/benchmarks/knn/knn_python.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/knn/knn_sycl_native_ext/__init__.py b/dpbench/benchmarks/knn/knn_sycl_native_ext/__init__.py index e6a38a22..a05f2d7a 100644 --- a/dpbench/benchmarks/knn/knn_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/knn/knn_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .knn_sycl._knn_sycl import knn as knn_sycl diff --git a/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp b/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp index 24217b39..9a87858c 100644 --- a/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp +++ b/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// knn benchmark. +// SPDX-License-Identifier: Apache-2.0 #include #include diff --git a/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_sycl.cpp b/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_sycl.cpp index 6ea4578a..e7c13b9b 100644 --- a/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_sycl.cpp +++ b/dpbench/benchmarks/knn/knn_sycl_native_ext/knn_sycl/_knn_sycl.cpp @@ -1,12 +1,6 @@ -//==- _knn_sycl.cpp - Python native extension of Black-Scholes ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// knn benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_knn_kernel.hpp" #include diff --git a/dpbench/benchmarks/l2_norm/__init__.py b/dpbench/benchmarks/l2_norm/__init__.py index 5af63587..ba3078d5 100644 --- a/dpbench/benchmarks/l2_norm/__init__.py +++ b/dpbench/benchmarks/l2_norm/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ l2-norm calculation of n vectors diff --git a/dpbench/benchmarks/l2_norm/l2_norm_base.py b/dpbench/benchmarks/l2_norm/l2_norm_base.py index 7a0a3566..3f8ee3ea 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_base.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_base.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_dpnp.py b/dpbench/benchmarks/l2_norm/l2_norm_dpnp.py index 405ad3df..2f6463fa 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_dpnp.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_dpnp.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_initialize.py b/dpbench/benchmarks/l2_norm/l2_norm_initialize.py index 43003908..2c2ffc52 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_initialize.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_k.py b/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_k.py index e2921de4..389d8925 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_k.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_k.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_n.py b/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_n.py index 8186051f..c5de2dd6 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_n.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_numba_dpex_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_numba_n.py b/dpbench/benchmarks/l2_norm/l2_norm_numba_n.py index b41b08e9..c80f07e8 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_numba_n.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_numba_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_numba_np.py b/dpbench/benchmarks/l2_norm/l2_norm_numba_np.py index 8186051f..c5de2dd6 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_numba_np.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_numba_np.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_numpy.py b/dpbench/benchmarks/l2_norm/l2_norm_numpy.py index d6a8d2b8..5db0f6d7 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_numpy.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_numpy.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/__init__.py b/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/__init__.py index 8ac2f583..837a0aa0 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .l2_norm_sycl._l2_norm_sycl import l2_norm as l2_norm_sycl diff --git a/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_kernel.hpp b/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_kernel.hpp index 73716d2a..daf1d57b 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_kernel.hpp +++ b/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// l2-norm benchmark. +// SPDX-License-Identifier: Apache-2.0 #include #include diff --git a/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_sycl.cpp b/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_sycl.cpp index 483c35d0..90f1a026 100644 --- a/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_sycl.cpp +++ b/dpbench/benchmarks/l2_norm/l2_norm_sycl_native_ext/l2_norm_sycl/_l2_norm_sycl.cpp @@ -1,12 +1,6 @@ -//==- _l2_norm_sycl.cpp - Python native extension of l2-norm ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// l2-norm benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_l2_norm_kernel.hpp" #include diff --git a/dpbench/benchmarks/pairwise_distance/__init__.py b/dpbench/benchmarks/pairwise_distance/__init__.py index 08930f71..34d47bee 100644 --- a/dpbench/benchmarks/pairwise_distance/__init__.py +++ b/dpbench/benchmarks/pairwise_distance/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ Pairwise distance computation of 2 n-dim arrays diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_base.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_base.py index e1d68b22..8be2a5bf 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_base.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_base.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_dpnp.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_dpnp.py index 51d1f445..031a9ec3 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_dpnp.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_dpnp.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_initialize.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_initialize.py index 522a044f..41d0216f 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_initialize.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_k.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_k.py index c6789e4f..e82f4a1e 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_k.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_k.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_n.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_n.py index eb0e6784..c653cf3e 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_n.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_p.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_p.py index 95416805..6ee80945 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_p.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_dpex_p.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_np.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_np.py index eb0e6784..c653cf3e 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_np.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_np.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_npr.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_npr.py index 0a3ff5d7..ee143181 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_npr.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numba_npr.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numpy.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numpy.py index b506881f..5204b6bf 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_numpy.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_numpy.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/__init__.py b/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/__init__.py index c43d074d..7cde45fd 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# Copyright 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .pairwise_distance_sycl._pairwise_distance_sycl import ( pairwise_distance as pairwise_distance_sycl, diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_kernel.hpp b/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_kernel.hpp index d6409fe3..68c35517 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_kernel.hpp +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// pairwise_distance benchmark. +// SPDX-License-Identifier: Apache-2.0 #include #include diff --git a/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_sycl.cpp b/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_sycl.cpp index bc63ec28..3a5dc725 100644 --- a/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_sycl.cpp +++ b/dpbench/benchmarks/pairwise_distance/pairwise_distance_sycl_native_ext/pairwise_distance_sycl/_pairwise_distance_sycl.cpp @@ -1,13 +1,6 @@ -//==- _pairwise_distance_sycl.cpp - Python native extension of Pairwise_Distance -//===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// pairwise_distance benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_pairwise_distance_kernel.hpp" #include diff --git a/dpbench/benchmarks/pca/__init__.py b/dpbench/benchmarks/pca/__init__.py index a1328c29..3a7c9d4c 100644 --- a/dpbench/benchmarks/pca/__init__.py +++ b/dpbench/benchmarks/pca/__init__.py @@ -1,8 +1,9 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 -"""Principle Component Analysis +""" +Principle Component Analysis Input --------- diff --git a/dpbench/benchmarks/pca/pca_dpnp.py b/dpbench/benchmarks/pca/pca_dpnp.py index 1eba02bd..cbf51dd5 100644 --- a/dpbench/benchmarks/pca/pca_dpnp.py +++ b/dpbench/benchmarks/pca/pca_dpnp.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2023 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pca/pca_initialize.py b/dpbench/benchmarks/pca/pca_initialize.py index 5a44c607..56c45bd4 100644 --- a/dpbench/benchmarks/pca/pca_initialize.py +++ b/dpbench/benchmarks/pca/pca_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pca/pca_numba_dpex_n.py b/dpbench/benchmarks/pca/pca_numba_dpex_n.py index 90b4c58d..eb500c68 100644 --- a/dpbench/benchmarks/pca/pca_numba_dpex_n.py +++ b/dpbench/benchmarks/pca/pca_numba_dpex_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pca/pca_numba_n.py b/dpbench/benchmarks/pca/pca_numba_n.py index 973a2a76..538222bb 100644 --- a/dpbench/benchmarks/pca/pca_numba_n.py +++ b/dpbench/benchmarks/pca/pca_numba_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pca/pca_numba_np.py b/dpbench/benchmarks/pca/pca_numba_np.py index 90b4c58d..eb500c68 100644 --- a/dpbench/benchmarks/pca/pca_numba_np.py +++ b/dpbench/benchmarks/pca/pca_numba_np.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/pca/pca_numpy.py b/dpbench/benchmarks/pca/pca_numpy.py index 8fbe87a3..7c180a7a 100644 --- a/dpbench/benchmarks/pca/pca_numpy.py +++ b/dpbench/benchmarks/pca/pca_numpy.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/__init__.py b/dpbench/benchmarks/rambo/__init__.py index 7131a712..75486bff 100644 --- a/dpbench/benchmarks/rambo/__init__.py +++ b/dpbench/benchmarks/rambo/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """ The Rambo algorithm is a high energy physics application diff --git a/dpbench/benchmarks/rambo/rambo_initialize.py b/dpbench/benchmarks/rambo/rambo_initialize.py index 18a9e47c..4a3ca82f 100644 --- a/dpbench/benchmarks/rambo/rambo_initialize.py +++ b/dpbench/benchmarks/rambo/rambo_initialize.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/rambo_numba_dpex_k.py b/dpbench/benchmarks/rambo/rambo_numba_dpex_k.py index 5d701099..ad272325 100644 --- a/dpbench/benchmarks/rambo/rambo_numba_dpex_k.py +++ b/dpbench/benchmarks/rambo/rambo_numba_dpex_k.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/rambo_numba_dpex_p.py b/dpbench/benchmarks/rambo/rambo_numba_dpex_p.py index 2be40729..1b14daec 100644 --- a/dpbench/benchmarks/rambo/rambo_numba_dpex_p.py +++ b/dpbench/benchmarks/rambo/rambo_numba_dpex_p.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/rambo_numba_n.py b/dpbench/benchmarks/rambo/rambo_numba_n.py index c9714af2..2f27045f 100644 --- a/dpbench/benchmarks/rambo/rambo_numba_n.py +++ b/dpbench/benchmarks/rambo/rambo_numba_n.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/rambo_numba_npr.py b/dpbench/benchmarks/rambo/rambo_numba_npr.py index 2be40729..1b14daec 100644 --- a/dpbench/benchmarks/rambo/rambo_numba_npr.py +++ b/dpbench/benchmarks/rambo/rambo_numba_npr.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/rambo_numpy.py b/dpbench/benchmarks/rambo/rambo_numpy.py index 796375b8..e5616edd 100644 --- a/dpbench/benchmarks/rambo/rambo_numpy.py +++ b/dpbench/benchmarks/rambo/rambo_numpy.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/benchmarks/rambo/rambo_sycl_native_ext/__init__.py b/dpbench/benchmarks/rambo/rambo_sycl_native_ext/__init__.py index 9753c754..38ca23fb 100644 --- a/dpbench/benchmarks/rambo/rambo_sycl_native_ext/__init__.py +++ b/dpbench/benchmarks/rambo/rambo_sycl_native_ext/__init__.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corporation +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from .rambo_sycl._rambo_sycl import rambo as rambo_sycl diff --git a/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_kernel.hpp b/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_kernel.hpp index 5749a221..9bd0744c 100644 --- a/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_kernel.hpp +++ b/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_kernel.hpp @@ -1,10 +1,6 @@ +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// The files implements a SYCL-based Python native extension for the -/// rambo benchmark. +// SPDX-License-Identifier: Apache-2.0 #include #include diff --git a/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_sycl.cpp b/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_sycl.cpp index 9cbc536d..8357fa68 100644 --- a/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_sycl.cpp +++ b/dpbench/benchmarks/rambo/rambo_sycl_native_ext/rambo_sycl/_rambo_sycl.cpp @@ -1,12 +1,6 @@ -//==- _rambo_sycl.cpp - Python native extension of Rambo ===// +// SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation // -// Copyright 2022 Intel Corp. -// -// SPDX - License - Identifier : Apache 2.0 -/// -/// \file -/// The files implements a SYCL-based Python native extension for the -/// Rambo benchmark. +// SPDX-License-Identifier: Apache-2.0 #include "_rambo_kernel.hpp" #include diff --git a/dpbench/infrastructure/__init__.py b/dpbench/infrastructure/__init__.py index 071cb974..91eda895 100644 --- a/dpbench/infrastructure/__init__.py +++ b/dpbench/infrastructure/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 diff --git a/dpbench/infrastructure/benchmark.py b/dpbench/infrastructure/benchmark.py index 42e19063..897d4972 100644 --- a/dpbench/infrastructure/benchmark.py +++ b/dpbench/infrastructure/benchmark.py @@ -1,6 +1,7 @@ # Copyright 2021 ETH Zurich and the NPBench authors. All rights reserved. -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # +# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: BSD-3-Clause import importlib diff --git a/dpbench/infrastructure/datamodel.py b/dpbench/infrastructure/datamodel.py index 6cfd2f18..2853b71c 100644 --- a/dpbench/infrastructure/datamodel.py +++ b/dpbench/infrastructure/datamodel.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import logging import sqlite3 diff --git a/dpbench/infrastructure/dpcpp_framework.py b/dpbench/infrastructure/dpcpp_framework.py index c055760d..9388343e 100644 --- a/dpbench/infrastructure/dpcpp_framework.py +++ b/dpbench/infrastructure/dpcpp_framework.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import subprocess from typing import Callable diff --git a/dpbench/infrastructure/dpnp_framework.py b/dpbench/infrastructure/dpnp_framework.py index ce290656..05f8c7bc 100644 --- a/dpbench/infrastructure/dpnp_framework.py +++ b/dpbench/infrastructure/dpnp_framework.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 from typing import Any, Callable, Dict diff --git a/dpbench/infrastructure/enums.py b/dpbench/infrastructure/enums.py index a8731073..32ee13de 100644 --- a/dpbench/infrastructure/enums.py +++ b/dpbench/infrastructure/enums.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from enum import Enum diff --git a/dpbench/infrastructure/framework.py b/dpbench/infrastructure/framework.py index fe7fc039..da8fc5e7 100644 --- a/dpbench/infrastructure/framework.py +++ b/dpbench/infrastructure/framework.py @@ -1,6 +1,7 @@ # Copyright 2021 ETH Zurich and the NPBench authors. All rights reserved. -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # +# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: BSD-3-Clause import json diff --git a/dpbench/infrastructure/numba_dpex_framework.py b/dpbench/infrastructure/numba_dpex_framework.py index 4a94b004..df7c0f3a 100644 --- a/dpbench/infrastructure/numba_dpex_framework.py +++ b/dpbench/infrastructure/numba_dpex_framework.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 from typing import Any, Callable, Dict diff --git a/dpbench/infrastructure/numba_dpex_kernel_framework.py b/dpbench/infrastructure/numba_dpex_kernel_framework.py index ff363ef1..828b32b3 100644 --- a/dpbench/infrastructure/numba_dpex_kernel_framework.py +++ b/dpbench/infrastructure/numba_dpex_kernel_framework.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 import logging from typing import Any, Callable, Dict diff --git a/dpbench/infrastructure/numba_framework.py b/dpbench/infrastructure/numba_framework.py index a207f933..fa0a3feb 100644 --- a/dpbench/infrastructure/numba_framework.py +++ b/dpbench/infrastructure/numba_framework.py @@ -1,9 +1,9 @@ # Copyright 2021 ETH Zurich and the NPBench authors. All rights reserved. -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # +# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: BSD-3-Clause - from .framework import Framework _impl = { diff --git a/dpbench/infrastructure/reporter.py b/dpbench/infrastructure/reporter.py index 60ba0de1..393bf10e 100644 --- a/dpbench/infrastructure/reporter.py +++ b/dpbench/infrastructure/reporter.py @@ -1,6 +1,8 @@ # Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 Intel Corporation # # SPDX-License-Identifier: Apache 2.0 +# SPDX-License-Identifier: Apache-2.0 """The module generates reports for implementation summary and timing summary from a specific benchmark run. diff --git a/dpbench/infrastructure/timeout_decorator.py b/dpbench/infrastructure/timeout_decorator.py index 5236b23e..e4b8c193 100644 --- a/dpbench/infrastructure/timeout_decorator.py +++ b/dpbench/infrastructure/timeout_decorator.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2022 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 + ####### License: MIT """MIT License diff --git a/dpbench/infrastructure/timer.py b/dpbench/infrastructure/timer.py index 7ab00c47..285d34d7 100644 --- a/dpbench/infrastructure/timer.py +++ b/dpbench/infrastructure/timer.py @@ -1,7 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 - +# SPDX-License-Identifier: Apache-2.0 import gc import time diff --git a/dpbench/infrastructure/utilities.py b/dpbench/infrastructure/utilities.py index 022ca0bb..36417ba6 100644 --- a/dpbench/infrastructure/utilities.py +++ b/dpbench/infrastructure/utilities.py @@ -1,6 +1,8 @@ # Copyright 2021 ETH Zurich and the NPBench authors. All rights reserved. # Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 Intel Corporation # +# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: BSD-3-Clause import argparse diff --git a/dpbench/runner.py b/dpbench/runner.py index e97481d5..2e52f366 100644 --- a/dpbench/runner.py +++ b/dpbench/runner.py @@ -1,6 +1,6 @@ -# Copyright 2022 Intel Corp. +# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation # -# SPDX-License-Identifier: Apache 2.0 License +# SPDX-License-Identifier: Apache-2.0 import importlib import json diff --git a/scripts/update_copyrights.py b/scripts/update_copyrights.py new file mode 100644 index 00000000..09143477 --- /dev/null +++ b/scripts/update_copyrights.py @@ -0,0 +1,35 @@ +import os +import subprocess + + +def update_copyrights(root_dir, year): + for folder, _, files in os.walk(root_dir): + for filename in files: + if filename[0] != "." and os.path.splitext(filename)[1] in [ + ".py", + ".h", + ".c", + ".cpp", + ".hpp", + ]: + filePath = os.path.abspath(os.path.join(folder, filename)) + args = [ + "annotate", + "--copyright=Intel Corporation", + "--license=Apache-2.0", + "--year", + str(year), + "--merge-copyrights", + filePath, + ] + print(args) + subprocess.check_call( + ["reuse", *args], + shell=False, + ) + + +path = os.path.dirname(os.path.realpath(__file__)) +source_path = os.path.dirname(path) + +update_copyrights(source_path + "/dpbench", 2023)