Skip to content

Commit b8197a6

Browse files
Merge branch 'main' into move-test-files
2 parents fd46752 + bb46346 commit b8197a6

File tree

5 files changed

+3170
-1992
lines changed

5 files changed

+3170
-1992
lines changed

numba_cuda/numba/cuda/tests/benchmarks/test_kernel_launch.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33

44
import string
55
from numba import cuda
6+
from numba.cuda.core import config
67
import numpy as np
78
import pytest
89
from pytest import param
910

1011

12+
pytestmark = pytest.mark.skipif(
13+
condition=config.ENABLE_CUDASIM,
14+
reason="no reason to run benchmarks in the simulator",
15+
)
16+
17+
1118
@pytest.mark.parametrize(
1219
"array_func",
1320
[

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,17 +225,12 @@ def test_staged(self):
225225

226226
# Test on every CUDA devices
227227
ngpus = len(cuda.gpus)
228-
futures = [
229-
self.exe.submit(
228+
229+
for device_num in range(ngpus):
230+
future = self.exe.submit(
230231
staged_ipc_handle_test, ipch, device_num, parent_pid=os.getpid()
231232
)
232-
for device_num in range(ngpus)
233-
]
234-
235-
for fut in concurrent.futures.as_completed(
236-
futures, timeout=FUTURE_TIMEOUT * ngpus
237-
):
238-
np.testing.assert_equal(arr, fut.result())
233+
np.testing.assert_equal(arr, future.result(timeout=FUTURE_TIMEOUT))
239234

240235
def test_ipc_array(self):
241236
for device_num in range(len(cuda.gpus)):

0 commit comments

Comments
 (0)