Repository navigation
Error on provided choices #553
Unanswered
AmirMardan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I was trying to run my code which works perfectly on mac on another system.
devices = get_test_platforms_and_devices()[0][1]gives me[<pyopencl.Device 'Tesla P100-PCIE-16GB' on 'NVIDIA CUDA' at 0x55a942c1c760>].When I want to create the context, I get this error,
RuntimeError: not all provided choices were used by create_some_context. (left over: '0'). I couldn't find anything to see the reason for the error. Could you please let me know what the reason is?If you want to reproduce the problem, I just ran this code here
https://pyfwi.readthedocs.io/en/latest/sub_doc/example.html#Example
The device is set on 1 in one of the cells
'device': 1which makes the program use the second available device but you can change it based on your system.Thanks
All reactions