Skip to content

Commit fe7b59a

Browse files
author
Diptorup Deb
committed
Minor formatting edits.
1 parent 7f43d4a commit fe7b59a

File tree

7 files changed

+170
-171
lines changed

7 files changed

+170
-171
lines changed

dpctl/__init__.pxd

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,31 @@
1-
##===-------------- __init__.pxd - dpctl module --------*- Cython -*-------===##
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-
## This file declares the extension types and functions for the Cython API
23-
## implemented in sycl_core.pyx.
24-
##
25-
##===----------------------------------------------------------------------===##
1+
#===------------- __init__.pxd - dpctl module --------*- Cython -*----------===#
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+
# This file declares the extension types and functions for the Cython API
23+
# implemented in sycl_core.pyx.
24+
#
25+
#===------------------------------------------------------------------------===#
2626

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

3030
from dpctl._sycl_core cimport *
3131
from dpctl._memory import *
32-

dpctl/__init__.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
##===----------------- __init__.py - dpctl module -------*- Cython -*------===##
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-
## This top-level dpctl module.
23-
##
24-
##===----------------------------------------------------------------------===##
1+
#===----------------- __init__.py - dpctl module -------*- Cython -*--------===#
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+
# The top-level dpctl module.
23+
#
24+
#===------------------------------------------------------------------------===#
2525
"""
2626
**Data Parallel Control (dpCtl)**
2727

dpctl/_backend.pxd

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
##===------------- backend.pyx - dpctl module -------*- Cython -*----------===##
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-
## This file defines the Cython extern types for the functions and opaque data
23-
## types defined by dpctl's C API.
24-
##
25-
##===----------------------------------------------------------------------===##
1+
#===------------- backend.pyx - dpctl module -------*- Cython -*------------===#
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+
# This file defines the Cython extern types for the functions and opaque data
23+
# types defined by dpctl's C API.
24+
#
25+
#===------------------------------------------------------------------------===#
2626

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

dpctl/memory/__init__.pxd

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
##===----------- __init__.pxd - dpctl.memory module ----*- Cython -*-------===##
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-
## This file declares the extension types and functions for the Cython API
23-
## implemented in dpctl.memory_memory.pyx.
24-
##
25-
##===----------------------------------------------------------------------===##
1+
#===----------- __init__.pxd - dpctl.memory module ----*- Cython -*---------===#
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+
# This file declares the extension types and functions for the Cython API
23+
# implemented in dpctl.memory._memory.pyx.
24+
#
25+
#===------------------------------------------------------------------------===#
2626

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

dpctl/memory/__init__.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
##===---------- __init__.py - dpctl.memory module -------*- 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-
## This is the dpctl.memory module containing the USM memory manager features
23-
## of dpctl.
24-
##
25-
##===----------------------------------------------------------------------===##
1+
#===---------- __init__.py - dpctl.memory module -------*- 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+
# This is the dpctl.memory module containing the USM memory manager features
23+
# of dpctl.
24+
#
25+
#===------------------------------------------------------------------------===#
2626
"""
2727
**Data Parallel Control Memory**
2828

dpctl/memory/_memory.pxd

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
##===--------------- _memory.pxd - dpctl module --------*- Cython -*-------===##
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-
##===----------------------------------------------------------------------===##
1+
#===--------------- _memory.pxd - dpctl module --------*- Cython -*---------===#
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+
#===-----------------------------------------------------------------------===#
2020

2121
# distutils: language = c++
2222
# cython: language_level=3

dpctl/memory/_memory.pyx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
##===--------------- _memory.pyx - dpctl module --------*- Cython -*-------===##
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-
## This file implements Python buffer protocol using Sycl USM shared and host
23-
## allocators. The USM device allocator is also exposed through this module for
24-
## use in other Python modules.
25-
##
26-
##===----------------------------------------------------------------------===##
1+
#===--------------- _memory.pyx - dpctl module --------*- Cython -*---------===#
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+
# This file implements Python buffer protocol using Sycl USM shared and host
23+
# allocators. The USM device allocator is also exposed through this module for
24+
# use in other Python modules.
25+
#
26+
#===------------------------------------------------------------------------===#
2727

2828
# distutils: language = c++
2929
# cython: language_level=3
@@ -440,7 +440,7 @@ cdef class _Memory:
440440
cdef const char * usm_type = DPCTLUSM_GetPointerType(p, ctx.get_context_ref())
441441

442442
return <bytes>usm_type
443-
443+
444444

445445
cdef class MemoryUSMShared(_Memory):
446446
"""

0 commit comments

Comments
 (0)