Hi hosain!
There is two ways to make PyOpenCL work on Windows.
The first one requires to build PyOpenCl from source. In order to
build PyOpenCL, you have to install Visual Studio, Boost libraries,
build Boost (I haven't look yet how to build Boost 1.41, but for
previous versions you have to build Boost.Build tool bjam.exe, and
then use it to build entire Boost), then configure siteconfig.py and
run 'setup.py install' to build PyOpenCL. If build succeeded, PyOpenCL
will be integrated into python, it will placed in <python
folder>/site-packages.
The second way is about obtaining PyOpenCL from someone who built it
:) If you experience difficulties building PyOpenCL I can send you a
pyopencl package which I built. It can be simply placed into examples
folder, and every example should work, I've tested it on different
machine. Also, be sure to install NumPy package.
Best regards, Andrew Karpushin.
Senior Graphics Engineer, 3DreamTeam LLC
ICQ: 224069674
Skype: reven-dfg
On Sun, Nov 29, 2009 at 7:17 PM, hosain ali
<tiger_engineer2010(a)yahoo.com> wrote:
ok !!
first I would like to tell u the beginning of the story :D
i did all the steps of PyOpenCL/Installation/Windows as this link
http://wiki.tiker.net/PyOpenCL/Installation/Windows
but the problem I faced after that was
problem 1 : how could I develop on visual studio ,and how can I link OpenCl
to it ??!!
problem 2 : in what language should I develop on visual studio ?!!
then after that I had an idea, and it was "what about writing these programs
in Python on Eclipse !!!! ",
So I made new Python project then I made new Python module on it, finally I
wrote the simplest PyOpenCL (demo.py in pyopencl-0.91.3 examples)
problem 3 :when I run it it fires errors the first one is
line 1, in <module>
import pyopencl as cl
ImportError: No module named pyopencl
so f u have any answer to any of these problems,tell me as soon as possible
because the idea of my graduation project is in the field of parallel
programming.
thx in advance,
Hosain
________________________________
From: Andreas Klöckner <lists(a)informa.tiker.net>
To: pyopencl(a)tiker.net
Sent: Sun, November 29, 2009 12:56:42 AM
Subject: Re: [PyOpenCL] how to import pyopencl
On Samstag 28 November 2009, hosain ali wrote:
hi, I'm new in this feild,
but I succeeded to install every thing,
the remaining thing is how to import PyOpenCL to the python module.
by the way I develop on Eclipse and when I run the trivial example which
use PyOpenCl and NumPy it fails and give the error result from the
"import
pyopencl as cl" line
so could u help me ??!
Sure--please send the entire error message.
Andreas
_______________________________________________
PyOpenCL mailing list
PyOpenCL(a)tiker.net
http://tiker.net/mailman/listinfo/pyopencl_tiker.net