Discussion:
[PyCUDA] pycuda 2015.1.3 test_driver.py fails once
Dorin Niculescu
2016-02-26 08:44:22 UTC
Permalink
Hi all,
I have a fresh installed ubuntu 14.04.3 distribution, with cuda 7.0 and pycuda 2015.1.3. I'm using an NVIDIA GTX 960 card and the latest driver 361.28. All the installation went well but when i run test_driver.py i get :
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
rootdir: /opt/pycuda-2015.1.3, inifile:
collected 23 items

test_driver.py ................x......

===================== 22 passed, 1 xfailed in 5.91 seconds =====================

Can you please help me to understand why the test fails once?

Thank you very much,
Dorin
Andreas Kloeckner
2016-02-26 14:37:26 UTC
Permalink
Post by Dorin Niculescu
Hi all,
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
collected 23 items
test_driver.py ................x......
===================== 22 passed, 1 xfailed in 5.91 seconds =====================
Can you please help me to understand why the test fails once?
That's an "xfail", an expected failure.

python -m pytest test_driver.py -v

will tell you what that is.

Andreas
Dorin Niculescu
2016-03-02 13:06:45 UTC
Permalink
Hello Andreas,
Thank you for you answer. I've run the command you gave me and i've identified the xfail
test_driver.py::TestDriver::test_recursive_launch <- ../../usr/local/lib/python2.7/dist-packages/pycuda-2015.1.3-py2.7-linux-x86_64.egg/pycuda/tools.py xfail

I still don't understand why this is an expected failure, on my other configuration Ubuntu 12.04 / cuda 5.5 / pycuda 2013.1.1 / NVIDIA GTX 660Ti / Driver 331.67 there are no xfails.
Thank you very much for your time.
Dorin
Post by Dorin Niculescu
Hi all,
============================= test session starts ==============================
platform linux2 -- Python 2.7.6, pytest-2.8.7, py-1.4.31, pluggy-0.3.1
collected 23 items
test_driver.py ................x......
===================== 22 passed, 1 xfailed in 5.91 seconds =====================
Can you please help me to understand why the test fails once?
That's an "xfail", an expected failure.

python -m pytest test_driver.py -v

will tell you what that is.

Andreas
Andreas Kloeckner
2016-03-02 16:46:30 UTC
Permalink
Post by Dorin Niculescu
Hello Andreas,
Thank you for you answer. I've run the command you gave me and i've identified the xfail
test_driver.py::TestDriver::test_recursive_launch <- ../../usr/local/lib/python2.7/dist-packages/pycuda-2015.1.3-py2.7-linux-x86_64.egg/pycuda/tools.py xfail
I still don't understand why this is an expected failure, on my other configuration Ubuntu 12.04 / cuda 5.5 / pycuda 2013.1.1 / NVIDIA GTX 660Ti / Driver 331.67 there are no xfails.
Thank you very much for your time.
Here's what's going on:

- PyCUDA doesn't currently support recursive launches, which is what's
exposed by the xfail. (This test would start passing as soon as
https://github.com/inducer/pycuda/issues/45 is fixed.)

- The GTX 660i does not support a sufficiently recent compute
architecture to support recursive launches, so this test gets skipped
outright, hence no xfails.

Andreas
Dorin Niculescu
2016-03-03 16:38:02 UTC
Permalink
Thank you very much for your answer, everything is clear now.
Dorin
Post by Dorin Niculescu
Hello Andreas,
Thank you for you answer. I've run the command you gave me and i've identified the xfail
test_driver.py::TestDriver::test_recursive_launch <- ../../usr/local/lib/python2.7/dist-packages/pycuda-2015.1.3-py2.7-linux-x86_64.egg/pycuda/tools.py xfail
I still don't understand why this is an expected failure, on my other configuration Ubuntu 12.04 / cuda 5.5 / pycuda 2013.1.1 / NVIDIA GTX 660Ti / Driver 331.67 there are no xfails.
  Thank you very much for your time.
Here's what's going on:

- PyCUDA doesn't currently support recursive launches, which is what's
  exposed by the xfail. (This test would start passing as soon as
  https://github.com/inducer/pycuda/issues/45 is fixed.)

- The GTX 660i does not support a sufficiently recent compute
  architecture to support recursive launches, so this test gets skipped
  outright, hence no xfails.

Andreas

Loading...