Hi,
I installed pyopencl using apt on ubuntu16.04 but it installs an older
version (which doesn't work when CUDA is installed):
python-pyopencl/xenial 2015.1-2build3 amd64
Python module to access OpenCL parallel computation API
I was wondering if this pkg will be updated to install a new pyopencl.
Thanks,
Shivangi Agarwal
Dear all,
I known this is not the good mailing list to ask.
So I am sorry to ask but I do it anyway.
I have a simple cl kernel that totally work with nvidia-icd / neo-icd /
pocl-icd.
But today the pocl-icd do not compile at all.
I get this error message:
*pocl error: lt_dlopen("(null)") or lt_dlsym() failed with 'can't close
resident module'.**
**note: missing symbols in the kernel binary might be reported as 'file
not found' errors.**
*
I don't think it is pyopencl related more pocl.
I am on unbutunu 18.04, python 3.6.8, pyopencl 2019.1.2, pocl-opencl-icd
1.1-5.
google do not help me so much.
Maybe an opencl expert here could help me.
Thank a lot.
Best,
Samuel
Yves Surrel <yves(a)surrel.org> writes:
> Hi Andreas
>
> I just had a look to the last PyOpenCL doc on the Web, memory->transfers-> pyopencl.enqueue_copy
>
> I think that the text in the first note:
>
> "Be aware that when the deletion of the blah blah… »
>
> should read:
>
> "Be aware that the deletion of the blah blah… » (‘when’ removed)
>
> Also, the end of the note
>
> "as long as necessary for the transfer to complete. »
>
> does not sound very well. I suggest
>
> "until the transfer has completed »
Thanks for the suggestions, I've implemented them. (Docs should auto
update in a bit.)
Andreas
Hi,
I am fairly new to opencl and I'm currently trying to get PyOpenCL to work in order to use an other python based package (pysph).
I have done the following steps for the installation
-installed CentOS 7.6
-installed Radeon VII OpenCL drivers (sudo required)
-installed miniconda with python 3.7 without sudo
-created conda environement
- installed pyopencl (tried via conda-forge and pip)
when I try to run the following minimal example in the conda environment
import pyopencl as cl
platforms = cl.get_platforms()
ctx = cl.Context(dev_type=cl.device_type.GPU, properties=[(cl.context_properties.PLATFORM, platforms[0])])
print(ctx.devices)
I get the following error
File "test.py", line 5, in <module>
ctx = cl.Context(dev_type=cl.device_type.GPU, properties=[(cl.context_properties.PLATFORM, platforms[0])])
pyopencl._cl.RuntimeError: Context failed: DEVICE_NOT_FOUND
I could not find any solution in the installation instructions or by googling or searching the the error message in the Mailing list. Has anybody had similar issues? Or does PyOpen CL requires root access to work properly?
Thanks a lot for any clues in advance,
Marina
I have a ppcle64+rhel7.6 setup and I have tried multiple ways to install pyopencl, but nothing works. I have python2.7 and python3.6 installed on the machine. To name a few, I tried installing with:
1. pip3: which gives me Pyhton.h error
"
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
"
2. pip2: which installs it but import doesn't work. Gives me the following error:
"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/pyopencl/__init__.py", line 39, in <module>
import pyopencl._cl as _cl
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/python2.7/site-packages/pyopencl/_cl.so)
"
3. install with anaconda: installs it but import says module not found
4. building from source: gives Python.h error (python3) or glibc version error at import (python2)
Can someone help me find a straightforward method to install pyopencl on redhat?
Thanks,
Shivangi