Skip to content

Commit b861a3a

Browse files
committed
test: give a longer timeout for multiple futures
1 parent 5e531c8 commit b861a3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

numba_cuda/numba/cuda/tests/cudapy/test_ipc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,15 @@ def test_staged(self):
241241
self.assertEqual(ipch_recon.size, ipch.size)
242242

243243
# Test on every CUDA devices
244+
ngpus = len(cuda.gpus)
244245
futures = [
245246
self.exe.submit(
246247
staged_ipc_handle_test, ipch, device_num, parent_pid=os.getpid()
247248
)
248-
for device_num in range(len(cuda.gpus))
249+
for device_num in range(ngpus)
249250
]
250251

251-
for fut in concurrent.futures.as_completed(futures, timeout=3.0):
252+
for fut in concurrent.futures.as_completed(futures, timeout=3 * ngpus):
252253
np.testing.assert_equal(arr, fut.result())
253254

254255
def test_ipc_array(self):

0 commit comments

Comments
 (0)