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
The OpenCL contexts on all visible devices seem to be created when calling pyopencl.get_platforms().
This occurs on both our Power9 and DGX1 servers. It might be due to the nvidia-persistenced daemon.
For now I see no obvious bugfix apart from being careful in the imports order.
Any OpenCL test run on our Power9 machine results in the following error (with my environment):
PYOPENCL_CTX="0:1" ./run_tests.py silx.opencl.test.test_addition.suite [...] OSError: [Errno 12] Cannot allocate memory
The reason is linked to
scikit-cuda
:scikit-cuda
creates a CUBLAS context to get the version number when imported.silx
creates an OpenCL context on all present devices to pick the best one.For some reason doing (1) then (2) succeeds, but doing (2) then (1) fails on Power9.
The following fails:
The following succeeds:
A workaround is to modify the order of
import
s.The text was updated successfully, but these errors were encountered: