You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dpctl.lsplatform() does not output in jupyter notebook #796
Activity
oleksandr-pavlyk commentedon Mar 22, 2022
dpctl.lsplatform()usesstd::coutstream to output platform information, https://github.com/IntelPython/dpctl/blob/master/dpctl/_sycl_platform.pyx#L350while
SyclDevice.print_device_info()uses Python's stream:https://github.com/IntelPython/dpctl/blob/master/dpctl/_sycl_device.pyx#L289
The fix would be to introduce SYCLInterface function to return "char *" instead of outputting it, and use that to print using CPython.