We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dpctl.lsplatform() produces an intended output when called in a terminal, but produces no output when called from jupyter notebook.
dpctl.lsplatform()
At the same time dev.print_device_info() works fine from both.
dev.print_device_info()
The issue is for lsplatform to also work from jupyter notebook.
lsplatform
The text was updated successfully, but these errors were encountered:
dpctl.lsplatform() uses std::cout stream to output platform information, https://github.com/IntelPython/dpctl/blob/master/dpctl/_sycl_platform.pyx#L350 while SyclDevice.print_device_info() uses Python's stream: https://github.com/IntelPython/dpctl/blob/master/dpctl/_sycl_device.pyx#L289
std::cout
SyclDevice.print_device_info()
The fix would be to introduce SYCLInterface function to return "char *" instead of outputting it, and use that to print using CPython.
Sorry, something went wrong.
vlad-perevezentsev
Successfully merging a pull request may close this issue.
dpctl.lsplatform()
produces an intended output when called in a terminal, but produces no output when called from jupyter notebook.At the same time
dev.print_device_info()
works fine from both.The issue is for
lsplatform
to also work from jupyter notebook.The text was updated successfully, but these errors were encountered: