Re: [PyCuda] PyCUDA on Windows XP: failed with exit status 2

2009-06-02 Thread Andreas Klöckner
On Dienstag 02 Juni 2009, Marcel Krause wrote:
 Hello list,

 I try to install PyCUDA von WinXP SP 3. Most of the problems were
 solved with a little editing:
 * updating the DEFAULT_VERSION in ez_setup.py

This'll be unnecessary once 0.93 is out. Thanks for the reminder, though.

 * let setup.py search for nvcc.exe instead of nvcc

Good point. This is now done by default. That change will be in 0.93 and is 
also in git master.

 But now I'm stuck: setup.py install gives me vc.exe failed with
 exit status 2. Does anyone have any idea what that could mean?

From a distance, this looks like a compiler bug. In my book, a compiler should 
either succeed or fail with an error message. VC doesn't seem to do either in 
this instance. Any VC gurus here? What version of VC are you using?

 I post the other messages at the bottom of this mail, and also
 my siteconf.py. I'm not sure whether I have the right paths in
 there - can anyone tell me examples of files that I could search
 to make sure I have the right path configured, and find the paths
 that I don't yet have? (Like CUDADRV_LIB_DIR.)

You BOOST_PYTHON_LIBNAME is likely wrong--it refers to gcc, and you're 
compiling with msvc. But that's likely not the root of your current problem.

 configure.py runs without errors, but does not insert any paths
 at all into the siteconf.py, so I have to find them all manually.
 Not quite easy, because I have very lots of directories that are
 named lib, include and so on. :)

Hmm, configure.py was designed as just a commandline way of filling out 
siteconf.py--it wasn't meant to really detect anything. I realize that the 
name breeds expectations that it doesn't meet. I'll think of something. :)

Andreas


signature.asc
Description: This is a digitally signed message part.
___
PyCuda mailing list
PyCuda@tiker.net
http://tiker.net/mailman/listinfo/pycuda_tiker.net


Re: [PyCuda] PyCuda Digest, Vol 12, Issue 1

2009-06-02 Thread Vince Fulco
Thanks to all for the timely replies.  In the interim over the weekend
I upgraded to driver #185.18.04 and the install went w/o a hitch.
That having been said these were the results of test runs:

test_abstract_array.py: passed but with no output

test_driver.py: failed (error below)
E...
==
ERROR: test_gpuarray (__main__.TestCuda)
--
Traceback (most recent call last):
  File test_driver.py, line 117, in test_gpuarray
diff = (a_g-3*b_g+(-a_g)).get() - (a-3*b+(-a))
  File 
/usr/lib64/python2.5/site-packages/pycuda-0.93rc3-py2.5-linux-x86_64.egg/pycuda/gpuarray.py,
line 226, in __add__
result = self._new_like_me(_get_common_dtype(self, other))
  File 
/usr/lib64/python2.5/site-packages/pycuda-0.93rc3-py2.5-linux-x86_64.egg/pycuda/gpuarray.py,
line 212, in _new_like_me
allocator=self.allocator)
  File 
/usr/lib64/python2.5/site-packages/pycuda-0.93rc3-py2.5-linux-x86_64.egg/pycuda/gpuarray.py,
line 81, in __init__
self.gpudata = self.allocator(self.size * self.dtype.itemsize)
MemoryError: cuMemAlloc failed: out of memory

--
Ran 16 tests in 0.225s

FAILED (errors=1)

test_gpuarray.py : failed (error below)
..FF.
==
FAIL: test_dot (__main__.TestGPUArray)
--
Traceback (most recent call last):
  File test_gpuarray.py, line 115, in test_dot
self.assert_(abs(dot_ab_gpu-dot_ab)/abs(dot_ab)  1e-4)
AssertionError

==
FAIL: test_sum (__main__.TestGPUArray)
--
Traceback (most recent call last):
  File test_gpuarray.py, line 102, in test_sum
self.assert_(abs(sum_a_gpu-sum_a)/abs(sum_a)  1e-4)
AssertionError

--
Ran 21 tests in 15.745s

FAILED (failures=2)

test_math.py passed

test_texture_nan.py passed with no traceback but with no output

Best, V.

-- 
Vince Fulco, CFA, CAIA
612.424.5477 (universal)
vful...@gmail.com





On Mon, Jun 1, 2009 at 2:00 PM,  pycuda-requ...@tiker.net wrote:
 Send PyCuda mailing list submissions to
        pyc...@tiker.net

 To subscribe or unsubscribe via the World Wide Web, visit
        http://tiker.net/mailman/listinfo/pycuda_tiker.net
 or, via email, send a message with subject or body 'help' to
        pycuda-requ...@tiker.net

 You can reach the person managing the list at
        pycuda-ow...@tiker.net

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of PyCuda digest...


 Today's Topics:

   1. Ongoing install puzzle... (Vince Fulco)
   2. Re: Ongoing install puzzle... (Vincent Favre-Nicolin)
   3. Re: Ongoing install puzzle... (Andreas Kl?ckner)


 --

 Message: 1
 Date: Sun, 31 May 2009 15:01:06 -0400
 From: Vince Fulco vful...@gmail.com
 Subject: [PyCuda] Ongoing install puzzle...
 To: pycuda@tiker.net
 Message-ID:
        34f2770f0905311201m58fb9632x34ad11f66bdab...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 Dear Andreas-

 First, thank you for an extraordinary and ground breaking effort to
 bring CUDA to the masses.

 I have an ongoing installation issue closely related to the
 problem/solution Paul Rigor generously contributed a few weeks back.
 Running FC10 x86_64 with driver 180.51, CUDA 2.2, re-built Boost 1.39
 after removing 1.37 (from Paul's instructions of ) and the just
 released 0.93RC3.  I can get thru configure.py, manually fix the
 siteconf.py file, do a make install and then when running the first
 test, test_driver.py, get the error, ImportError:
 /usr/lib64/python2.5/site-packages/pycuda-0.93rc3-py2.5-linux-x86_64.egg/pycuda/_driver.so:
 undefined symbol: cuMemHostAlloc.

 This was addressed in the post-- Message: 3 Date: Sun, 10 May 2009
 16:46:59 -0400 From: Andreas Kl?ckner li...@informa.tiker.net
 Subject: Re: [PyCuda] Call for Testers: 0.93rc1 --but I am still
 somewhat unclear as to how to resolve. As I'm not facile with C code,
 hope the list can help.

 Here is the modified siteconf.py

 BOOST_INC_DIR = ['/usr/local/include/boost-1_39']
 BOOST_LIB_DIR = ['/usr/local/lib']
 BOOST_COMPILER = 'gcc43'
 BOOST_PYTHON_LIBNAME = ['boost_python-mt']
 BOOST_THREAD_LIBNAME = ['boost_thread-mt']
 CUDA_TRACE = False
 CUDA_ENABLE_GL = False
 CUDADRV_LIB_DIR = ['/usr/local/cuda/lib']
 CUDADRV_LIBNAME = ['cuda']
 CXXFLAGS = []
 LDFLAGS = []
 CUDA_ROOT = '/usr/local/cuda'

 I've also tried combinations eliminating the entries for BOOST_INC_DIR
 and BOOST_LIB_DIR with no luck.

 TIA for any trailheads.

 Regards,

 V.

 --
 Vince Fulco, CFA, CAIA
 612.424.5477