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

pocl Support #406

Open
big-c-note opened this issue Nov 21, 2020 · 6 comments
Open

pocl Support #406

big-c-note opened this issue Nov 21, 2020 · 6 comments

Comments

@big-c-note
Copy link

big-c-note commented Nov 21, 2020

Does pyopencl on pypi support pocl installation? I am trying to avoid conda if possible. Thank you!

From the docs: https://documen.tician.de/pyopencl/misc.html#installing-from-pypi-with-linux-wheels

On Linux, Ubuntu 20.04 if it matters

To install pyopencl with pocl, a CPU based implementation do,

pip install pyopencl[pocl]

pip3 install pyopencl[pocl] produces error:

no matches found: pyopencl[pocl]
@inducer
Copy link
Owner

inducer commented Nov 22, 2020

Works fine when building from source: https://gitlab.tiker.net/inducer/pyopencl/-/jobs/194730

I don't have the spare bandwidth to engineer the wheel build to do Pypy wheels. I've turned on PR builds on Travis. If you'd like to hack the Travis config to build these, I'd be happy to consider a PR.

@big-c-note
Copy link
Author

Thanks for the offer. Do you think this would add value to pyopencl?

@kif
Copy link
Contributor

kif commented Nov 22, 2020 via email

@big-c-note
Copy link
Author

big-c-note commented Nov 22, 2020

Hey @kif , I don't fully understand the opencl ecosystem yet, so forgive me I might not see your issue. But, why don't you build pocl from source? https://github.com/pocl/pocl

@inducer
Copy link
Owner

inducer commented Nov 22, 2020

@kif Two minor clarifications.

  • Intel is still producing releases for their ICD. They're a bit hidden, but they exist. The most recent release is in the oclcpuexp tarball in this releasel: https://github.com/intel/llvm/releases/tag/2020-WW45. Note: I had to set $LD_LIBRARY_PATH to keep the runtime from picking up TBB from my distribution, otherwise all you get is segfaults.
  • This issue is about pypy+pocl. If you want cpython+pocl installed from wheels, you can already simply say pip install pyopencl[pocl] as @big-c-note mentioned.

@big-c-note https://pypi.org/project/pocl-binary-distribution/ should work with pypy just fine in principle. There are no Python-specific bits in it.

@kif
Copy link
Contributor

kif commented Nov 23, 2020

@inducer, thanks for pointing me to the intel driver. Their former driver was OK for all our test suite while pocl isn't OK yet. I am happy pocl improves gradually as it is currently the only way to access Nvidia GPUs via OpenCL on ARM&Power computers.

And sorry again for the noise, I thought it was about PyPI (the package repository) and not PyPy (the Python implementation).

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

3 participants