Skip to content

Commit 10e1565

Browse files
committed
Code formatting
1 parent ddd8349 commit 10e1565

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

dpctl/experimental/_work_group_memory.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from .._backend cimport DPCTLSyclWorkGroupMemoryRef
2121

22+
2223
cdef public api class _WorkGroupMemory [
2324
object Py_WorkGroupMemoryObject, type Py_WorkGroupMemoryType
2425
]:
@@ -28,4 +29,3 @@ cdef public api class WorkGroupMemory(_WorkGroupMemory) [
2829
object PyWorkGroupMemoryObject, type PyWorkGroupMemoryType
2930
]:
3031
pass
31-

dpctl/experimental/_work_group_memory.pyx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
# cython: linetrace=True
2020

2121
from .._backend cimport (
22+
DPCTLWorkGroupMemory_Available,
2223
DPCTLWorkGroupMemory_Create,
2324
DPCTLWorkGroupMemory_Delete,
24-
DPCTLWorkGroupMemory_Available
2525
)
2626

27+
2728
cdef class _WorkGroupMemory:
2829
def __dealloc__(self):
2930
if(self._mem_ref):
@@ -32,7 +33,7 @@ cdef class _WorkGroupMemory:
3233
cdef class WorkGroupMemory:
3334
"""
3435
WorkGroupMemory(nbytes)
35-
Python class representing the ``work_group_memory`` class from the
36+
Python class representing the ``work_group_memory`` class from the
3637
Workgroup Memory oneAPI SYCL extension for low-overhead allocation of local
3738
memory shared by the workitems in a workgroup.
3839
@@ -56,6 +57,4 @@ cdef class WorkGroupMemory:
5657
pointer as a ``size_t``.
5758
"""
5859
def __get__(self):
59-
return <size_t>self._mem_ref
60-
61-
60+
return <size_t>self._mem_ref

dpctl/tests/test_work_group_memory.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
"""Defines unit test cases for the SyclProgram and SyclKernel classes
18-
"""
17+
"""Defines unit test cases for the SyclProgram and SyclKernel classes"""
1918

2019
import os
2120

0 commit comments

Comments
 (0)