Skip to content

test: add cuda tests for virtual arrays #3459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ikrommyd
Copy link
Collaborator

@ikrommyd ikrommyd commented Apr 12, 2025

Attempting to add cuda tests for virtual arrays. The failures are due to cupy/cupy#9089

@ikrommyd ikrommyd marked this pull request as ready for review April 28, 2025 14:43
@ikrommyd ikrommyd requested a review from ianna April 28, 2025 14:43
Copy link
Collaborator

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikrommyd - I get 95 failing tests:

FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpy_array_pad_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_fill_none - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_firsts - IndexError: cannot slice NumpyArray (of length 1) with 282578783305729: Index 282578783305729 is out of bounds for ...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_singletons - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_cartesian - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_argcartesian - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_combinations - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_nan_to_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_local_index - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_to_buffers - assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_concatenate - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 4539628428701270273
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_where - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_num - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_count_nonzero - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_sum - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_nansum - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_prod - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_nanprod - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_all - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_min - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_nanmin - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_max - cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 36,028,797,018,963,968 bytes (allocated so far: 5,632 b...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_nanmax - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_is_none - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_drop_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_pad_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_firsts - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_cartesian - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 8589934593
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_argcartesian - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 1
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_combinations - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_argcombinations - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_nan_to_none - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_local_index - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listoffsetarray_mask_operations - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 4607182423111827713
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_list - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_json - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_numpy - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_zip - cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 49,539,595,901,075,456 bytes (allocated so far: 2,560 b...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_unzip - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 16843009
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_concatenate - cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 80,614,433,329,932,288 bytes (allocated so far: 9,216 b...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_where - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_flatten - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_unflatten - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_num - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_count - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_count_nonzero - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_sum - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_nansum - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_prod - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_nanprod - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_any - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_all - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_min - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_max - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_nanmax - cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 36,028,797,018,963,968 bytes (allocated so far: 8,192 b...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_drop_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_pad_none - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_fill_none - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_firsts - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_regular - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_broadcast_arrays - AssertionError: assert not True
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_cartesian - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 8589934593
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_argcartesian - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_combinations - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_argcombinations - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_nan_to_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_local_index - cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 49,539,595,901,075,456 bytes (allocated so far: 6,656 b...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_run_lengths - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_isclose - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 4608236261112822104
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_almost_equal - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_slicing - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_mask_operations - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 1
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_arithmetics - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_to_buffers - assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_concatenate - OverflowError: can't convert negative value to size_t
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_where_y_field - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_count_x_field - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_count_y_field - assert array(4607632778762754458) == array(0)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_count_nonzero_y_field - assert array(4591870180066957722) == array(0)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_sum_x_field - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_any_x_field - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_any_y_field - assert array(False) == array(True)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_max_y_field - assert array(0.) == array(1.1)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_local_index_x_field - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_local_index_y_field - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_combinations_x_field - OverflowError: can't convert negative value to size_t
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_combinations_y_field - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_nan_to_none_x_field - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_nan_to_none_y_field - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_mask_operations - OverflowError: can't convert negative value to size_t
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_firsts_x_field - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_firsts_y_field - IndexError: cannot slice NumpyArray (of length 1) with 4607632778762754458: Index 4607632778762754458 is out of bou...
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_with_custom_generator - AssertionError: assert False
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_with_none_values - AssertionError: assert [{'x': [5.5, ...], 'y': None}] == [{'x': [6.6, ...], 'y': None}]
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_recordarray_advanced_indexing - IndexError: cannot slice RecordArray (of length 5) with array([281474993488128,          -65275,               1])
===================================== 95 failed, 119 passed, 26 skipped in 14.41s ======================================

@ikrommyd
Copy link
Collaborator Author

ikrommyd commented Apr 30, 2025

@ianna What if you run them sequentially? pytest tests-cuda and not use pytest-xdist with python -m pytest -n auto tests-cuda? I was getting such weird errors as well with parallelization.

@ikrommyd
Copy link
Collaborator Author

The only error from the above that I'm expecting is ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

@ikrommyd
Copy link
Collaborator Author

On my machine I'm getting this with python -m pytest -n auto tests-cuda/test_3459_virtualarray_with_cuda.py or python -m pytest tests-cuda/test_3459_virtualarray_with_cuda.py

FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_list - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_json - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_numpy - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_flatten - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_unflatten - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_count - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_count_nonzero - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_sum - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_prod - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_any - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_all - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_min - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_max - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_regular - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_broadcast_arrays - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_run_lengths - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_almost_equal - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_slicing - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
======================================================================================================================================== 18 failed, 196 passed, 26 skipped in 4.41s =========================================================================================================================================

@ikrommyd
Copy link
Collaborator Author

With python -m pytest tests-cuda I'm getting the same 18 failed as above but with python -m pytest -n auto tests-cuda I'm getting some more errors similar to what you've encountered.

FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpy_array_pad_none - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_fill_none - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_firsts - IndexError: cannot slice NumpyArray (of length 1) with 4658907843817111553: Index 4658907843817111553 is out of bounds for axis 0 with size 1
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_singletons - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_numpy - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_list - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_numpyarray_local_index - AssertionError: assert array(False)
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_count - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_json - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_count_nonzero - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_broadcast_arrays - AssertionError: broadcast_tooffsets64 can only be used with offsets that start at 0, not 4311810305
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_to_regular - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_max - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_sum - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_any - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_flatten - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_run_lengths - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_slicing - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_all - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_cartesian - cupy.cuda.memory.OutOfMemoryError: Out of memory allocating 397,803,306,929,356,800 bytes (allocated so far: 10,240 bytes).
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_unflatten - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_prod - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_min - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_almost_equal - ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_argcartesian - ValueError: Negative dimensions are not allowed
FAILED tests-cuda/test_3459_virtualarray_with_cuda.py::test_listarray_combinations - AssertionError: assert False
======================================================================================================================================== 26 failed, 880 passed, 41 skipped in 8.21s =========================================================================================================================================

Copy link
Collaborator

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikrommyd - I'm afraid, I cannot merge this PR with failing tests. Please, skip the tests that are waiting for the fix. Thanks!

@ikrommyd ikrommyd marked this pull request as draft May 1, 2025 16:38
@ikrommyd
Copy link
Collaborator Author

ikrommyd commented May 1, 2025

Needs #3468 to be resolved

@ikrommyd
Copy link
Collaborator Author

ikrommyd commented Jun 17, 2025

@ariostas @ianna, Now that the GPU CI is up, should we xfail the failing tests are try to merge this too? It's testing many aspects of the cuda backend (every high-level function) in the process while testing virtual arrays :)

@ikrommyd
Copy link
Collaborator Author

I'm also seeing some "illegal memory access was encountered" errors in CI now. I had seen these on my local desktop in the past only when I parallelized the cuda tests with pytest -n auto. I'm pretty sure this is a pytest artifact and that we won't get these if we run the tests individually. I will try to see what's up using an FNAL GPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants