Re: [PyCUDA] PyCuda Launch Timeout under Py2Exe

2010-06-02 Thread Samuel Powell
I was unable to solve the launch timeouts by removing elements of the kernel
code.

This seemed to me to point to a problem with CUDA, after reinstalling
Windows (XP Pro SP3), CUDA, etc., the program executes correctly when
packaged. I am now unable to reproduce the error.

As such it would seem that when Windows/CUDA is playing ball py2exe seems
able to handle pycuda 'out of the box'. The distutils script must explicitly
include the pyCuda header files, and exclude nvcudal.dll.

Many thanks for your time.

Regards,

Sam.


-Original Message-
From: Andreas Kloeckner [mailto:li...@informa.tiker.net] 
Sent: 21 May 2010 13:56
To: Samuel Powell; pycuda@tiker.net
Subject: RE: [PyCUDA] PyCuda Launch Timeout under Py2Exe

On Fri, 21 May 2010 13:24:51 +0100, Samuel Powell
spow...@medphys.ucl.ac.uk wrote:
 Hi Andreas,
 
 You are correct in your assertion.
 
 I followed your advice by packaging some of the pyCuda example scripts 
 using py2exe before executing them. In the majority of cases, I found 
 no problem executing the packaged code.
 
 If, as you suggest, the launch failure is likely caused by a segfault 
 on the device, I think the best course of action is for me to dissect 
 the CUDA kernel until it runs correctly, thus identifying where the 
 bad addressing comes into play.

 Would you agree with this analysis?

That sounds plausible.

Good luck with your bug hunting,
Andreas

PS: Please keep the list cc'd when replying. Thx!


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


Re: [PyCUDA] PyCuda Launch Timeout under Py2Exe

2010-05-19 Thread Andreas Kloeckner
On Wed, 19 May 2010 22:03:02 +0100, Samuel Powell spow...@medphys.ucl.ac.uk 
wrote:
 Hi,
 
 I have written a PyCuda based simulation code that successfully executes
 when run normally with Python. I need to distribute this code to my
 colleagues - owing to the large number of package dependencies and potential
 unfamiliarity with Python I have been attempting to package the code using
 Py2Exe.
 
 Execution of the code via the Py2Exe-generated executable leads to a launch
 timeout when the code attempts to run the CUDA kernel.
 
 Traceback (most recent call last):
  File gui.pyc, line 236, in simulate
 
  File controller.pyc, line 131, in simulate
 
  File pycuda\driver.pyc, line 169, in function_call
 
 pycuda._driver.LaunchError: cuCtxSynchronize failed: launch timeout
 
 During the attempted launch the graphics output of the machine is frozen.
 Note that the code successfully communicates with the card via CUDA prior to
 launching the kernel (transferring various constants/textures).
 
 Can anyone offer any advice as to how to fix this problem, or, indeed, how
 to debug it!?

Does py2exe add the Nvidia's CUDA DLL to the package? (nvcuda.dll or
some such) If so, you should tell it to not do that--the version already
present on the target system should be used. If not, I'm not sure what
could be wrong.

Andreas



pgpF1wdas3bvN.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda