Skip to content

Test: TestDeallocation.test_max_pending_count is flaky #856

@leofang

Description

@leofang

https://github.com/NVIDIA/numba-cuda/actions/runs/24417845685/job/71332295933#step:15:4517

=================================== FAILURES ===================================
___________________ TestDeallocation.test_max_pending_count ____________________
[gw11] linux -- Python 3.13.13 /opt/hostedtoolcache/Python/3.13.13/x64/bin/python

self = <numba.cuda.tests.cudadrv.test_deallocations.TestDeallocation testMethod=test_max_pending_count>

    @skip_if_external_memmgr("Deallocation specific to Numba memory management")
    def test_max_pending_count(self):
        # get deallocation manager and flush it
        deallocs = cuda.current_context().memory_manager.deallocations
        deallocs.clear()
        self.assertEqual(len(deallocs), 0)
        # deallocate to maximum count
        for i in range(config.CUDA_DEALLOCS_COUNT):
            cuda.to_device(np.arange(1))
>           self.assertEqual(len(deallocs), i + 1)
E           AssertionError: 10 != 9

/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/site-packages/numba_cuda/numba/cuda/tests/cudadrv/test_deallocations.py:30: AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions