Discussion:
[PyCUDA] PyCUDA test_cumath.py fails on cosh with complex number
Adrian Oeftiger
2015-03-03 15:38:21 UTC
Permalink
Dear PyCUDA community,

in lack of finding a better place, I'll submit a tentative "bug"
report here. I have posted my situation on stackoverflow:

https://stackoverflow.com/questions/28829536/pycuda-test-cumath-py-fails-on-cosh

- ---
Essentially, I've installed pycuda on a machine featuring a TESLA
C2075. I'm running on Ubuntu 14.04 with the CUDA-6.0 compiler installed.

Using python 2.7.9 (via the anaconda distribution) and numpy 1.9.0, I
have installed pycuda 2014.1 from the ZIP file that Andreas Kloeckner
provides on his website. (http://mathema.tician.de/software/pycuda/)

Running the tests provided by that ZIP file goes all well except for
the test_cumath.py file. I receive the following error:

E AssertionError: (2.3841858e-06, 'cosh', <type 'numpy.complex64'>)
E assert <built-in method all of numpy.bool_ object at 0x7f00747f3880>()
E + where <built-in method all of numpy.bool_ object at
0x7f00747f3880> = 2.3841858e-06 <= 2e-06.all

test_cumath.py:54: AssertionError
===== 1 failed, 27 passed in 12.57 seconds =====

- ---

I can consistently reproduce the same number (and error) on the four
different C2075 that I have available. Is this simply a tolerance that
has not been set appropriately?

I guess, I am not the first one to run this test, so I'm wondering
whether I am doing something wrong... ;-)

Please point me to any better place to ask this question if this
should be the wrong address.

Thanks for your help,
Adrian
Andreas Kloeckner
2015-03-04 05:07:14 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear PyCUDA community,
in lack of finding a better place, I'll submit a tentative "bug"
https://stackoverflow.com/questions/28829536/pycuda-test-cumath-py-fails-on-cosh
- ---
Essentially, I've installed pycuda on a machine featuring a TESLA
C2075. I'm running on Ubuntu 14.04 with the CUDA-6.0 compiler installed.
Using python 2.7.9 (via the anaconda distribution) and numpy 1.9.0, I
have installed pycuda 2014.1 from the ZIP file that Andreas Kloeckner
provides on his website. (http://mathema.tician.de/software/pycuda/)
Running the tests provided by that ZIP file goes all well except for
E AssertionError: (2.3841858e-06, 'cosh', <type 'numpy.complex64'>)
E assert <built-in method all of numpy.bool_ object at 0x7f00747f3880>()
E + where <built-in method all of numpy.bool_ object at
0x7f00747f3880> = 2.3841858e-06 <= 2e-06.all
As you say, this is simply a matter of missing a preset tolerance on the
computation of complex-valued cosh() by a little bit. I'm not too
concerned about this and have bumped the relevant tolerance in git.

Thanks for reporting this,
Andreas

Loading...