Skip to content
New issue

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

On and off errors when creating thread #54

Open
mfeldt opened this issue Oct 10, 2019 · 2 comments
Open

On and off errors when creating thread #54

mfeldt opened this issue Oct 10, 2019 · 2 comments

Comments

@mfeldt
Copy link

mfeldt commented Oct 10, 2019

Apparently sometimes thread creation in the opnCL context fails with the below error:

FFTthr = FFTapi.Thread.create()
File "/home/feldt/AOSAT_Dev/venv/lib/python3.5/site-packages/reikna/cluda/api.py", line 240, in create
selected_pnum = sorted(devices.keys())[0]
IndexError: list index out of range

The strange thing is that after a few attempts it sometimes works, and once the thread is created successfully it usually works flawlessly. So I suspect it has to do with an underlying library trying to connect to the GPU or something. The question is however - could reikna diagnose the problem and give a more useful report?

OpenCL version is OpenCL version 2019.1.1, reikna version is 0.7.2

@fjarri
Copy link
Owner

fjarri commented Oct 12, 2019

Can you reproduce this with pure PyOpenCL? It seems as if sometimes get_devices() method of a Platform object does not return all the available devices.

@mfeldt
Copy link
Author

mfeldt commented Oct 16, 2019

I'll try when I find the time. Right now the main problem is indeed that it happens only sometimes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants