Skip to content

Commit fdfdcaf

Browse files
author
Diptorup Deb
committed
Standardize license headers while keeping black happy.
1 parent 8ddfa5c commit fdfdcaf

21 files changed

+248
-242
lines changed

dpctl/__init__.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===------------- __init__.pxd - dpctl module --------*- Cython -*----------===#
1+
# ===------------ __init__.pxd - dpctl module --------*- Cython -*----------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This file declares the extension types and functions for the Cython API
2323
# implemented in sycl_core.pyx.
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ===-----------------------------------------------------------------------===#
2626

2727
# distutils: language = c++
2828
# cython: language_level=3

dpctl/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===----------------- __init__.py - dpctl module -------*- Cython -*--------===#
1+
# ===---------------- __init__.py - dpctl module -------*- Cython -*--------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,12 +16,12 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# The top-level dpctl module.
2323
#
24-
#===------------------------------------------------------------------------===#
24+
# ===-----------------------------------------------------------------------===#
2525
"""
2626
**Data Parallel Control (dpCtl)**
2727

dpctl/_backend.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===------------- backend.pyx - dpctl module -------*- Cython -*------------===#
1+
# ===------------ backend.pyx - dpctl module -------*- Cython -*------------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This file defines the Cython extern types for the functions and opaque data
2323
# types defined by dpctl's C API.
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ===-----------------------------------------------------------------------===#
2626

2727
# distutils: language = c++
2828
# cython: language_level=3

dpctl/_sycl_core.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ===------------- sycl_core.pxd - dpctl module --------*- Cython -*--------===#
1+
# ===------------ sycl_core.pxd - dpctl module --------*- Cython -*---------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#

dpctl/memory/__init__.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===----------- __init__.pxd - dpctl.memory module ----*- Cython -*---------===#
1+
# ===---------- __init__.pxd - dpctl.memory module ----*- Cython -*---------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This file declares the extension types and functions for the Cython API
2323
# implemented in dpctl.memory._memory.pyx.
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ===-----------------------------------------------------------------------===#
2626

2727
# distutils: language = c++
2828
# cython: language_level=3

dpctl/memory/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===---------- __init__.py - dpctl.memory module -------*- Python -*--------===#
1+
# ===--------- __init__.py - dpctl.memory module -------*- Python -*--------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This is the dpctl.memory module containing the USM memory manager features
2323
# of dpctl.
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ===-----------------------------------------------------------------------===#
2626
"""
2727
**Data Parallel Control Memory**
2828

dpctl/memory/_memory.pxd

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===--------------- _memory.pxd - dpctl module --------*- Cython -*---------===#
1+
# ===-------------- _memory.pxd - dpctl module --------*- Cython -*---------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,7 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===-----------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
20+
#
21+
# \file
22+
# This file has the Cython function declarations for the functions defined
23+
# in dpctl.memory._memory.pyx
24+
#
25+
# ===-----------------------------------------------------------------------===#
2026

2127
# distutils: language = c++
2228
# cython: language_level=3

dpctl/memory/_memory.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===--------------- _memory.pyx - dpctl module --------*- Cython -*---------===#
1+
# ===-------------- _memory.pyx - dpctl module --------*- Cython -*---------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,14 +16,14 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This file implements Python buffer protocol using Sycl USM shared and host
2323
# allocators. The USM device allocator is also exposed through this module for
2424
# use in other Python modules.
2525
#
26-
#===------------------------------------------------------------------------===#
26+
# ===-----------------------------------------------------------------------===#
2727

2828
# distutils: language = c++
2929
# cython: language_level=3

dpctl/program/__init__.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===----------- __init__.pxd - dpctl.program module -*- Cython -*-----------===#
1+
# ===---------- __init__.pxd - dpctl.program module -*- Cython -*-----------===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===##
19+
# ===----------------------------------------------------------------------===##
2020
#
2121
# \file
2222
# This file declares the extension types and functions for the Cython API
2323
# implemented in dpctl.program._program.pyx.
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ===-----------------------------------------------------------------------===#
2626

2727
# distutils: language = c++
2828
# cython: language_level=3

dpctl/program/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===---------- __init__.py - dpctl.program module ----*---- Python ----*----===#
1+
# ==---------- __init__.py - dpctl.program module ----*---- Python ----*----===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ==------------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This dpctl.program module wraps Sycl program creation functions defined in
2323
# dppl_sycl_program_interface.h.
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ==------------------------------------------------------------------------===#
2626
"""
2727
**Data Parallel Control Program**
2828

dpctl/program/_program.pxd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===-------------- _program.pxd - dpctl.program module -*-- Cython ----*----===#
1+
# ===------------- _program.pxd - dpctl.program module -*-- Cython ----*----===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,13 +16,13 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This file has the Cython function declarations for the functions defined
2323
# in dpctl.program._program.pyx
2424
#
25-
#===------------------------------------------------------------------------===#
25+
# ===-----------------------------------------------------------------------===#
2626

2727
# distutils: language = c++
2828
# cython: language_level=3

dpctl/program/_program.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===------- _program.pyx - dpctl.program module ---*--- Cython ------*------===#
1+
# ===------- _program.pyx - dpctl.program module ---*--- Cython ------*-----===#
22
#
33
# Data Parallel Control (dpCtl)
44
#
@@ -16,15 +16,15 @@
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
1818
#
19-
#===------------------------------------------------------------------------===#
19+
# ===-----------------------------------------------------------------------===#
2020
#
2121
# \file
2222
# This file implements a a Python interface for SYCL's program and kernel
2323
# runtime classes. Convenience functions to create a SYCL program for either
2424
# a OpenCL source file or a SPIR-V binary file are also included in the
2525
# module.
2626
#
27-
#===------------------------------------------------------------------------===#
27+
# ===-----------------------------------------------------------------------===#
2828

2929
# distutils: language = c++
3030
# cython: language_level=3

dpctl/tests/__init__.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
##===-------- tests/dpctl_tests/__init__.py - dpctl ------*- Python -*----===##
2-
##
3-
## Data Parallel Control (dpCtl)
4-
##
5-
## Copyright 2020 Intel Corporation
6-
##
7-
## Licensed under the Apache License, Version 2.0 (the "License");
8-
## you may not use this file except in compliance with the License.
9-
## You may obtain a copy of the License at
10-
##
11-
## http://www.apache.org/licenses/LICENSE-2.0
12-
##
13-
## Unless required by applicable law or agreed to in writing, software
14-
## distributed under the License is distributed on an "AS IS" BASIS,
15-
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
## See the License for the specific language governing permissions and
17-
## limitations under the License.
18-
##
19-
##===----------------------------------------------------------------------===##
20-
##
21-
## \file
22-
## Top-level module of all dpctl Python unit test cases.
23-
##===----------------------------------------------------------------------===##
1+
# ===-------- tests/dpctl_tests/__init__.py - dpctl ------*- Python -*-----===#
2+
#
3+
# Data Parallel Control (dpCtl)
4+
#
5+
# Copyright 2020 Intel Corporation
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
# ===-----------------------------------------------------------------------===#
20+
#
21+
# \file
22+
# Top-level module of all dpctl Python unit test cases.
23+
# ===-----------------------------------------------------------------------===#
2424

2525
from .test_dump_functions import *
2626
from .test_sycl_device import *

dpctl/tests/test_dump_functions.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
##===---------- test_sycl_queue_manager.py - dpctl -------*- Python -*----===##
2-
##
3-
## Data Parallel Control (dpCtl)
4-
##
5-
## Copyright 2020 Intel Corporation
6-
##
7-
## Licensed under the Apache License, Version 2.0 (the "License");
8-
## you may not use this file except in compliance with the License.
9-
## You may obtain a copy of the License at
10-
##
11-
## http://www.apache.org/licenses/LICENSE-2.0
12-
##
13-
## Unless required by applicable law or agreed to in writing, software
14-
## distributed under the License is distributed on an "AS IS" BASIS,
15-
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
## See the License for the specific language governing permissions and
17-
## limitations under the License.
18-
##
19-
##===----------------------------------------------------------------------===##
20-
###
21-
### \file
22-
### A basic unit test to verify that dpctl and dpct.ocldrv exist.
23-
##===----------------------------------------------------------------------===##
1+
# ===---------- test_sycl_queue_manager.py - dpctl -------*- Python -*-----===#
2+
#
3+
# Data Parallel Control (dpCtl)
4+
#
5+
# Copyright 2020 Intel Corporation
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
# ===-----------------------------------------------------------------------===#
20+
#
21+
# \file
22+
# A basic unit test to verify that dpctl and dpct.ocldrv exist.
23+
# ===-----------------------------------------------------------------------===#
2424

2525
import unittest
2626

dpctl/tests/test_sycl_device.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
##===------------ test_sycl_device.py - dpctl -------*- Python -*---------===##
2-
##
3-
## Data Parallel Control (dpctl)
4-
##
5-
## Copyright 2020 Intel Corporation
6-
##
7-
## Licensed under the Apache License, Version 2.0 (the "License");
8-
## you may not use this file except in compliance with the License.
9-
## You may obtain a copy of the License at
10-
##
11-
## http://www.apache.org/licenses/LICENSE-2.0
12-
##
13-
## Unless required by applicable law or agreed to in writing, software
14-
## distributed under the License is distributed on an "AS IS" BASIS,
15-
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
## See the License for the specific language governing permissions and
17-
## limitations under the License.
18-
##
19-
##===----------------------------------------------------------------------===##
20-
##
21-
## \file
22-
## Defines unit test cases for the SyclDevice classes defined in sycl_core.pyx.
23-
##===----------------------------------------------------------------------===##
1+
# ===------------- test_sycl_device.py - dpctl -------*- Python -*---------===#
2+
#
3+
# Data Parallel Control (dpctl)
4+
#
5+
# Copyright 2020 Intel Corporation
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
# ===-----------------------------------------------------------------------===#
20+
#
21+
# \file
22+
# Defines unit test cases for the SyclDevice classes defined in sycl_core.pyx.
23+
# ===-----------------------------------------------------------------------===#
2424

2525
import dpctl
2626
import unittest

0 commit comments

Comments
 (0)