Skip to content

Commit aaa51d3

Browse files
authored
Fix bugs highlighted by tools (#92)
* Fix unhandled character * Fix unhandled character * Remove unused imports * Fix class name duplication
1 parent bb41bb6 commit aaa51d3

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

backends/include/dppl_sycl_usm_interface.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ void DPPLfree_with_context (__dppl_take DPPLSyclUSMRef MRef,
8484
DPPL_API
8585
const char *
8686
DPPLUSM_GetPointerType (__dppl_keep const DPPLSyclUSMRef MRef,
87-
__dppl_keep const DPPLSyclContextRef СRef);
87+
__dppl_keep const DPPLSyclContextRef CRef);
8888

8989
DPPL_C_EXTERN_C_END

backends/source/dppl_sycl_usm_interface.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ void DPPLfree_with_queue (__dppl_take DPPLSyclUSMRef MRef,
7373
}
7474

7575
void DPPLfree_with_context (__dppl_take DPPLSyclUSMRef MRef,
76-
__dppl_keep const DPPLSyclContextRef СRef)
76+
__dppl_keep const DPPLSyclContextRef CRef)
7777
{
7878
auto Ptr = unwrap(MRef);
79-
auto C = unwrap(СRef);
79+
auto C = unwrap(CRef);
8080
free(Ptr, *C);
8181
}
8282

dpctl/tests/test_dump_functions.py

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import unittest
2626

2727
import dpctl
28-
import dpctl.ocldrv as drv
2928

3029

3130
class TestDumpMethods(unittest.TestCase):

dpctl/tests/test_sycl_queue_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_is_in_device_context_inside_nested_device_ctxt (self):
7878

7979

8080
@unittest.skipIf(not dpctl.has_sycl_platforms(), "No SYCL platforms available")
81-
class TestIsInDeviceContext (unittest.TestCase):
81+
class TestGetCurrentDevice (unittest.TestCase):
8282

8383
def test_get_current_device_type_outside_device_ctxt (self):
8484
self.assertNotEqual(dpctl.get_current_device_type(), None)
@@ -142,7 +142,7 @@ def test_num_current_queues_inside_with_clause (self):
142142
dpctl.has_cpu_queues(), "No OpenCL CPU queues available"
143143
)
144144
def test_num_current_queues_inside_threads (self):
145-
from threading import Thread, local
145+
from threading import Thread
146146
def SessionThread (self):
147147
self.assertEqual(dpctl.get_num_activated_queues(), 0)
148148
with dpctl.device_context("opencl:gpu:0"):

0 commit comments

Comments
 (0)