[PyCUDA] test_gpuarray.py errors
Imran Haque
ihaque at stanford.edu
Sun Apr 25 11:38:38 PDT 2010
Hi Chethan,
Devices of compute capability 1.3 do support double. 1.2 and lower do not.
Imran
Chethan Pandarinath wrote:
> Hi Bryan, thanks for the quick reply. I understand the issue now.
>
> So it looks like any devices of compute capability 1.x would not have
> support for double precision (from section 5.1.1.1 of the NVIDIA CUDA
> Programming Guide).
>
> Does this seem like a reasonable way of checking for double precision
> support in the test script? e.g., :
>
> import pycuda.driver as cuda
> dev=cuda.Device(0);
> if dev.compute_capability() < (2,0):
> no double precision support, don't run those tests...
>
>
>
>
> On Fri, Apr 23, 2010 at 9:07 PM, Bryan Catanzaro
> <bryan.catanzaro at gmail.com <mailto:bryan.catanzaro at gmail.com>> wrote:
>
> The GPU in your MacBook doesn't support double precision, which is
> why these tests are failing.
> You're of course welcome to change the tests so that they check for
> double precision support before running them - that would probably
> help out others who end up in this situation.
>
> - bryan
>
> On Apr 23, 2010, at 5:41 PM, Chethan Pandarinath
> <chethan.pandarinath at gmail.com
> <mailto:chethan.pandarinath at gmail.com>> wrote:
>
>> Hi everybody,
>>
>> I've been working on installing PyCUDA on my MacBook (Snow
>> Leopard). I think I'm close to having it working, it's been quite
>> a long road: getting compatible versions of boost, setuptools,
>> pytools... anyway, I think I'm past all that.
>>
>> I can now successfully run test_math.py and test_driver.py with no
>> errors.
>>
>> I am having trouble, however, with test_gpuarray.py
>>
>> I'm attaching the output from running the test script, with the
>> standard error appended as well.
>> $ arch -i386 python test_gpuarray.py >test_gpuarray_output.txt
>>
>>
>> There are a couple types of errors that I can see here:
>>
>> E AssertionError: (array(-4.2129004090721698e+36),
>> -1.2509687918788644e+303, <type 'numpy.float64'>, 'min')
>> test_gpuarray.py:328: AssertionError
>>
>> E assert array(-6.0786212321272663e+144) ==
>> -2.6357594520767543e+301
>> test_gpuarray.py:357: AssertionError
>>
>> E LaunchError: cuCtxPopCurrent failed: launch failed
>> /Library/Python/2.6/site-packages/pycuda/tools.py:504: LaunchError
>>
>> E RuntimeError: make_default_context() wasn't able to
>> create a context on any of the 1 detected devices
>> /Library/Python/2.6/site-packages/pycuda/tools.py:216: RuntimeError
>>
>>
>> To tell you the truth I don't know how to begin debugging this. If
>> anyone can point me in the right direction, I'd greatly appreciate
>> it. Willing to provide any info that would help...
>>
>> I'm running this on a MacBook, Snow Leopard (10.6.3), with an
>> NVIDIA GeForce 9400M. Using Python 2.6.1.
>>
>> Thanks.
>> Chethan
>>
>>
>>
>> --
>> Chethan Pandarinath
>> <mailto:chethan.pandarinath at gmail.com>chethan.pandarinath at gmail.com
>> <mailto:chethan.pandarinath at gmail.com>
>> <test_gpuarray_output.txt>
>> _______________________________________________
>> PyCUDA mailing list
>> PyCUDA at host304.hostmonster.com <mailto:PyCUDA at host304.hostmonster.com>
>> http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
>
>
>
>
> --
> Chethan Pandarinath
> chethan.pandarinath at gmail.com <mailto:chethan.pandarinath at gmail.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> PyCUDA mailing list
> PyCUDA at host304.hostmonster.com
> http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
More information about the PyCUDA
mailing list