Skip to content

Commit

Permalink
Merge pull request #192 from IntelPython/rename_copyright
Browse files Browse the repository at this point in the history
Standardize and Update copyright information
  • Loading branch information
adarshyoga authored Apr 4, 2023
2 parents 4ba2381 + ddf6adf commit 3c1565f
Show file tree
Hide file tree
Showing 114 changed files with 215 additions and 255 deletions.
4 changes: 2 additions & 2 deletions dpbench/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/__init__.py
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions dpbench/benchmarks/black_scholes/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/black_scholes/black_scholes_dpnp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 2 additions & 3 deletions dpbench/benchmarks/black_scholes/black_scholes_numba_n.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 2 additions & 3 deletions dpbench/benchmarks/black_scholes/black_scholes_numba_np.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
5 changes: 2 additions & 3 deletions dpbench/benchmarks/black_scholes/black_scholes_numba_npr.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/black_scholes/black_scholes_numpy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/black_scholes/black_scholes_python.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <CL/sycl.hpp>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <CL/sycl.hpp>
Expand Down
5 changes: 3 additions & 2 deletions dpbench/benchmarks/dbscan/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -28,4 +28,5 @@
-------
clusters: int
number of clusters
"""
2 changes: 1 addition & 1 deletion dpbench/benchmarks/dbscan/dbscan_initialize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
5 changes: 2 additions & 3 deletions dpbench/benchmarks/dbscan/dbscan_numba_dpex_k.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/dbscan/dbscan_numba_dpex_p.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/dbscan/dbscan_numba_n.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/dbscan/dbscan_numba_npr.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/dbscan/dbscan_python.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/dbscan/dbscan_sycl_native_ext/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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 <CL/sycl.hpp>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <CL/sycl.hpp>
Expand Down
5 changes: 3 additions & 2 deletions dpbench/benchmarks/gpairs/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_dpnp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_initialize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_numba_dpex_k.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_numba_dpex_p.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_numba_n.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_numba_npr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/gpairs/gpairs_numpy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
4 changes: 2 additions & 2 deletions dpbench/benchmarks/gpairs/gpairs_sycl_native_ext/__init__.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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 <CL/sycl.hpp>

Expand Down
Original file line number Diff line number Diff line change
@@ -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 <dpctl4pybind11.hpp>
Expand Down
5 changes: 3 additions & 2 deletions dpbench/benchmarks/kmeans/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -35,4 +35,5 @@
-------
clusters: int
number of clusters
"""
2 changes: 1 addition & 1 deletion dpbench/benchmarks/kmeans/kmeans_initialize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/kmeans/kmeans_numba_dpex_k.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/kmeans/kmeans_numba_dpex_p.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/kmeans/kmeans_numba_n.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
2 changes: 1 addition & 1 deletion dpbench/benchmarks/kmeans/kmeans_numba_npr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

Expand Down
3 changes: 1 addition & 2 deletions dpbench/benchmarks/kmeans/kmeans_python.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2022 Intel Corp.
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0


from math import sqrt


Expand Down
Loading

0 comments on commit 3c1565f

Please sign in to comment.