|
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 | +#===------------------------------------------------------------------------===# |
27 | 27 |
|
28 | 28 | # distutils: language = c++ |
29 | 29 | # cython: language_level=3 |
@@ -440,7 +440,7 @@ cdef class _Memory: |
440 | 440 | cdef const char * usm_type = DPCTLUSM_GetPointerType(p, ctx.get_context_ref()) |
441 | 441 |
|
442 | 442 | return <bytes>usm_type |
443 | | - |
| 443 | + |
444 | 444 |
|
445 | 445 | cdef class MemoryUSMShared(_Memory): |
446 | 446 | """ |
|
0 commit comments