We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35b2e6 commit fe8b34bCopy full SHA for fe8b34b
dpctl/_sycl_platform.pyx
@@ -323,6 +323,7 @@ def lsplatform(verbosity=0):
323
cdef DPCTLPlatformVectorRef PVRef = NULL
324
cdef size_t v = 0
325
cdef size_t size = 0
326
+ cdef const char * info_str = NULL
327
cdef DPCTLSyclPlatformRef PRef = NULL
328
329
if not isinstance(verbosity, int):
@@ -347,8 +348,11 @@ def lsplatform(verbosity=0):
347
348
if v != 0:
349
print("Platform ", i, "::")
350
PRef = DPCTLPlatformVector_GetAt(PVRef, i)
- DPCTLPlatformMgr_PrintInfo(PRef, v)
351
+ info_str = DPCTLPlatformMgr_PrintInfo(PRef,v)
352
+ py_info = <bytes> info_str
353
+ DPCTLCString_Delete(info_str)
354
DPCTLPlatform_Delete(PRef)
355
+ print(py_info.decode("utf-8"),end='')
356
DPCTLPlatformVector_Delete(PVRef)
357
358
0 commit comments