Am trying out the conda package manager on Fedora 23 on AMD APU system.
Installed AMD's opencl 2.0 driver:
Then installed Anaconda for 64 bit linux from:
There are two versions, one primarily for python 2.7 and the other for
python 3.5. Once these are installed, opened a new terminal and tried both:
$ conda install -c inducer pyopencl
$ conda install -c inducer pyopencl-pocl
This works in python 3.5, but one would need to repackage the settings at:
to get it to work in python 2.7. Last time I tried regular installation
of Pyopencl with python 2.7 to use GPU and CPU portions of AMD APU seems
to be ok. Have not yet gone through documentation for building recipes:
This would probably allow fixing of the error. The exact error is
$conda install -c inducer pyopencl
Fetching package metadata: .....
Solving package specifications: ........
Error: Unsatisfiable package specifications.
[ COMPLETE ]|#######################################| 100%
Hint: the following packages conflict with each other:
- python 2.7*
Use 'conda info pyopencl' etc. to see the dependencies for each package.
On 1/7/16 11:36 AM, LongGang wrote:
What is the conflict you got between pyopencl and python2.7?
Can you show some detail?
I met one similar problem before and found the solution, I am not sure
whether you are confused by the same conflict.
The following is what I wrote to Andreas before, hope it helps.
PS. I like the idea to put pyopencl in conda, and install it in local
I have found the reason. It is something related to the unicode string
used in the newer versions of python.
In order to use python3.3 and python 2.7 at the same time, I add the
following line in my python code,
from __future__ import absolute_import, division, print_function,
however, the compile_options in cl.Program().build(compile_options)
can not be unicode strings for python version 2.7.6 and 2.7.8
I have fixed the bug by just remove unicode_literals from preamble
such that the code can
run under both python 2.7 and 3.3. Thanks a lot!
> On Oct 12, 2015, at 7:23 PM, Andreas Kloeckner
> <lists(a)weasel.tiker.net <mailto:firstname.lastname@example.org>> wrote:
> Longgang Pang <pang(a)fias.uni-frankfurt.de
> <mailto:email@example.com>> writes:
>> I have problem when run the most recent PyOpenCL2015 with python2.7.6
>> and 2.7.8
>> The full output is as following, looks like 'ArgumentError' has no
>> attribute 'what' for python version 2.7.6 and 2.7.8?
>> There is no problem when I run pyopencl with python/3.3.6 or
>> Do you know how to fix it in the code without modifying pyopencl?