Skip to content

test failed #318

@beew

Description

@beew

compiled scikit-cuda from source. build successful but two tests failed

======================================================================
FAIL: test_batch_fft_float32_to_complex64_2d (test_fft.test_fft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bernard/opt/python38/scikit-cuda/tests/test_fft.py", line 75, in test_batch_fft_float32_to_complex64_2d
    np.testing.assert_allclose(xf, xf_gpu.get(), atol=atol_float32)
  File "/home/bernard/opt/python38/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 1527, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "/home/bernard/opt/python38/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 840, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=1e-06

Mismatched elements: 1 / 72 (1.39%)
Max absolute difference: 1.26101077e-06
Max relative difference: 3.31150888e-06
 x: array([[[ 1.847240e+01+0.j      ,  5.924784e-01+0.065641j,
         -3.084816e+00+0.j      ],
        [-2.996395e-01-0.153737j, -6.604408e-01+0.835482j,...
 y: array([[[ 1.847240e+01+0.j      ,  5.924784e-01+0.065641j,
         -3.084816e+00+0.j      ],
        [-2.996396e-01-0.153737j, -6.604407e-01+0.835482j,...

======================================================================
FAIL: test_fft_float32_to_complex64_2d (test_fft.test_fft)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/bernard/opt/python38/scikit-cuda/tests/test_fft.py", line 57, in test_fft_float32_to_complex64_2d
    np.testing.assert_allclose(xf, xf_gpu.get(), atol=atol_float32)
  File "/home/bernard/opt/python38/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 1527, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "/home/bernard/opt/python38/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 840, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=1e-06

Mismatched elements: 1 / 24 (4.17%)
Max absolute difference: 1.26101077e-06
Max relative difference: 3.31150888e-06
 x: array([[18.472399+0.j      ,  0.592478+0.065641j, -3.084816+0.j      ],
       [-0.29964 -0.153737j, -0.660441+0.835482j,  0.395764-1.806811j],
       [ 0.398715-1.791588j, -0.252602-0.33202j , -0.532842+0.039878j],...
 y: array([[18.472399+0.j      ,  0.592478+0.065641j, -3.084816+0.j      ],
       [-0.29964 -0.153737j, -0.660441+0.835482j,  0.395764-1.806812j],
       [ 0.398715-1.791588j, -0.252602-0.33202j , -0.532842+0.039878j],...

----------------------------------------------------------------------
Ran 343 tests in 23.693s

FAILED (failures=2, skipped=61)
Test failed: <unittest.runner.TextTestResult run=343 errors=0 failures=2>
error: Test failed: <unittest.runner.TextTestResult run=343 errors=0 failures=2>

cuda-11.0, python 3.8.10, numpy-1.19.5. OS is Ubuntu 20.04,scikit-cuda from master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions