I am trying to get PY-SIMTK up and running with GPU support (Quad Tesla C-2050 
system) on a CENTOS 5.5 installation.

I'm in a similar situation, I'm trying to install PyCUDA on CentOS 5.6

You want to change the line in aksetup_helper.py
  except OSError as e:
to
  except OSError, e:

The install script uses the 'as' construct which was added in Python 2.6, and it looks like you're running Python 2.4.

More info here


http://stackoverflow.com/questions/2535760/python-try-except-comma-vs-as-in-except

I found that after making the fix above, the C compile failed with this message

   src/cpp/cuda.hpp:1417: error: ‘Py_ssize_t’ does not name a type

PyCuda's C code used a type that it expected to be defined in the system's include files, but wasn't. I was not able to satisfy this dependency with the standard CentOS packages.

So I tried this workaround.  I added this line
   typedef int Py_ssize_t;
to src/cpp/cuda.hpp.  I came up with 'int' by inspecting a successful
install on a different system.

This compiled, and I've successfully run a few simple test program, but I do get this warning:

 /home/jon/local/lib64/python/pytools-2011.4-py2.4.egg/pytools
 /__init__.py:299: DeprecationWarning: pytools.decorator is deprecated
 and will be removed in pytools 12. Use the 'decorator' module directly
 instead.
   @my_decorator

I haven't look into that yet.

Next I'm going to try some larger programs to see if they also succeed.

Good luck.


- Jon





Good luck.  Please let me know how you make out.






On 10/22/2011 11:47 AM, Danni L Harris wrote:
Hi folks,
I am trying to get PY-SIMTK up and running with GPU support (Quad Tesla
C-2050 system) on a CENTOS 5.5 installation.
This package requires implementaiton of PYCUDA and BOOST.
I am trying to do the PYCUDA (Version: pycuda-2011.1.2) installation and
am getting errors that seem to trace to lines in the installation script
related to 'git' ---specifically:
I have done the distribute and numpy installs---but when I go in to try
and configure and install I get a syntax error flagged in running the
configure.py
/home/dannil/SOFTWARE/PY-CUDA/pycuda-2011.1.2
localhost 183% python configure.py --cuda-root=/usr/local/cuda
Traceback (most recent call last):
File "configure.py", line 3, in ?
from aksetup_helper import configure_frontend
File "/home/dannil/SOFTWARE/PY-CUDA/pycuda-2011.1.2/aksetup_helper.py",
line 7
22
except OSError as e:
^
SyntaxError: invalid syntax
What am I missing here ----this looks to be an issue with the
aksetup_helper.py portion of the configure.py? ---and in a portion of
aksetup_helper.py related to 'git'.
__________________PORTION OF AKSETUP-WHERE GETTING ISSUES_________________
if not isdir(".git"):
# not a git repository
return
git_error = None
from subprocess import Popen, PIPE
try:
popen = Popen(["git", "--version"], stdout=PIPE)
stdout_data, _ = popen.communicate()
if popen.returncode != 0:
git_error = "git returned error code %d" % popen.returncode
except OSError as e: << THIS IS BEING FLAGGED AS A SYNTAX ERROR??
git_error = e
if git_error is not None:
print("-----------------------------------------------------------------
--------")
print("Trouble invoking git")
print("-----------------------------------------------------------------
--------")
print("The package directory appears to be a git repository, but I could
")
print("not invoke git to check whether my submodules are up to date.")
print("")
OTHER (probably extraneous) DETAILS BELOW.
Can someone 'push' me in the right direction in resolving this? I do
gave git installed (version 1.7.7) ---but I don't believe this is the issue.
Danni
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
___________________________________________________________________
I have the 3.2.12 CUDA implementation in place
___________________INSTALL OF DISTRIBUTE AND
BOOST________________________________
removing '/usr/lib/python2.4/site-packages/distribute-0.6.19-py2.4.egg'
(and ev
rything under it)
creating /usr/lib/python2.4/site-packages/distribute-0.6.19-py2.4.egg
Extracting distribute-0.6.19-py2.4.egg to /usr/lib/python2.4/site-packages
distribute 0.6.19 is already the active version in easy-install.pth
Installing easy_install script to /usr/bin
Installing easy_install-2.4 script to /usr/bin
Installed /usr/lib/python2.4/site-packages/distribute-0.6.19-py2.4.egg
Processing dependencies for distribute==0.6.19
Finished processing dependencies for distribute==0.6.19
After install bootstrap.
/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg-info
already exist
localhost 181% su -c "easy_install numpy"
Password:
Searching for numpy
Best match: numpy 1.6.1
Processing numpy-1.6.1-py2.4-linux-x86_64.egg
numpy 1.6.1 is already the active version in easy-install.pth
Installing f2py script to /usr/bin
Using /usr/lib/python2.4/site-packages/numpy-1.6.1-py2.4-linux-x86_64.egg
Processing dependencies for numpy
Finished processing dependencies for numpy
localhost 182%
_________________________________________________________________
I have the 3.2.12 CUDA implementation in place---and currently this is
fine for running GPU accelerated molecular dynamics.
cudatoolkit_3.2.12_linux_64_rhel5.5.run NVIDIA-Linux-x86_64-260.19.21.run
gpucomputingsdk_3.2.12_linux.run untitled folder
MAKETESLADEV.sh
[root@localhost Desktop]# rpm -qa |grep boost
boost-1.33.1-10.el5_7.3
boost-devel-1.33.1-10.el5_7.3
boost-devel-1.33.1-10.el5_7.3
boost-1.33.1-10.el5_7.3
[root@localhost release]# rpm -qa |grep python
gnome-python2-gnomevfs-2.16.0-1.fc6
dbus-python-0.70-9.el5_4
gnome-python2-bonobo-2.16.0-1.fc6
gnome-python2-applet-2.16.0-3.el5
gnome-python2-gtkhtml2-2.14.2-7.el5
rpm-python-4.4.2.3-20.el5_5.1
gnome-python2-canvas-2.16.0-1.fc6
python-devel-2.4.3-44.el5_7.1
python-elementtree-1.2.6-5
gnome-python2-gnomeprint-2.16.0-3.el5
audit-libs-python-1.7.17-3.el5
gnome-python2-gtksourceview-2.16.0-3.el5
libxml2-python-2.6.26-2.1.2.8.el5_5.1
python-numeric-23.7-2.2.2
gamin-python-0.1.7-8.el5
python-sqlite-1.1.7-1.2.1
python-ldap-2.2.0-2.1
gnome-python2-extras-2.14.2-7.el5
gnome-python2-libegg-2.14.2-7.el5
python-urlgrabber-3.1.0-5.el5
notify-python-0.1.0-3.fc6
gnome-python2-gconf-2.16.0-1.fc6
gnome-python2-desktop-2.16.0-3.el5
python-libs-2.4.3-44.el5_7.1
python-iniparse-0.2.3-4.el5
python-2.4.3-44.el5_7.1
libselinux-python-1.33.4-5.5.el5
gnome-python2-2.16.0-1.fc6
python -devel-2.4.3-44.el5_7.1
[root@localhost release]# rpm -qa |grep boost
boost-1.33.1-10.el5_7.3
boost-devel-1.33.1-10.el5_7.3
boost-devel-1.33.1-10.el5_7.3
boost-1.33.1-10.el5_7.3
[root@localhost release]#

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to