Hi LongGang, Am trying out the conda package manager on Fedora 23 on AMD APU system. Installed AMD's opencl 2.0 driver:
http://support.amd.com/en-us/kb-articles/Pages/OpenCL2-Driver.aspx Then installed Anaconda for 64 bit linux from: https://www.continuum.io/downloads 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: https://github.com/inducer/ak-conda-recipes 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: http://conda.pydata.org/docs/building/sample-recipes.html 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. Generating hint: [ COMPLETE ]|#######################################| 100% Hint: the following packages conflict with each other: - pyopencl - python 2.7* Use 'conda info pyopencl' etc. to see the dependencies for each package. Regards, Benson On 1/7/16 11:36 AM, LongGang wrote: > Hi Benson, > > 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 > directory. > > Best regards, > longgang > > > > > > > > > Dear Andreas, > > 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, > unicode_literals > > 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! > > Best regards, > LongGang > >> On Oct 12, 2015, at 7:23 PM, Andreas Kloeckner >> <[email protected] <mailto:[email protected]>> wrote: >> >> Longgang Pang <[email protected] >> <mailto:[email protected]>> 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 >>> python/2.7.10. >>> >>> Do you know how to fix it in the code without modifying pyopencl? >
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
