Skip to content

Commit 8bcf91f

Browse files
skip whole file under simulator
1 parent e342b31 commit 8bcf91f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: BSD-2-Clause
33

4+
from numba.cuda import config
5+
import unittest
6+
7+
if config.ENABLE_CUDASIM:
8+
raise unittest.SkipTest("Simulator does not support extending types")
9+
410
import inspect
511
import math
612
import os
@@ -13,7 +19,7 @@
1319
import numba
1420
from numba import cuda, njit
1521
from numba.cuda import cgutils, jit, types
16-
from numba.cuda.testing import CUDATestCase, skip_on_cudasim
22+
from numba.cuda.testing import CUDATestCase
1723
from numba.cuda.cudadrv.driver import _have_nvjitlink
1824
from numba.cuda.tests.support import TestCase
1925
from numba.cuda.typing.templates import AttributeTemplate
@@ -203,7 +209,6 @@ def call_func1_unary(x, res):
203209
res[0] = func1(x)
204210

205211

206-
@skip_on_cudasim("Extensions not supported in the simulator")
207212
class TestExtending(CUDATestCase):
208213
def test_attributes(self):
209214
@cuda.jit
@@ -263,7 +268,6 @@ def f(r, x):
263268
np.testing.assert_allclose(r, expected)
264269

265270

266-
@skip_on_cudasim("Extensions not supported in the simulator")
267271
class TestExtendingLinkage(CUDATestCase):
268272
@unittest.skipUnless(TEST_BIN_DIR, "Necessary binaries are not available")
269273
def test_extension_adds_linkable_code(self):
@@ -369,7 +373,6 @@ def foo(r, x):
369373
np.testing.assert_equal(r, x * 2)
370374

371375

372-
@skip_on_cudasim("Simulator does not support extending types")
373376
class TestLowLevelExtending(TestCase):
374377
"""
375378
Test the low-level two-tier extension API.
@@ -399,7 +402,6 @@ def test_type_callable_keeps_function(self):
399402
self.assertIsNotNone(type_func1)
400403

401404

402-
@skip_on_cudasim("Simulator does not support extending types")
403405
class TestHighLevelExtending(TestCase):
404406
"""
405407
Test the high-level combined API.
@@ -673,7 +675,6 @@ def _assert_cache_stats(cfunc, expect_hit, expect_misses):
673675
raise AssertionError("cache not used")
674676

675677

676-
@skip_on_cudasim("Simulator does not support extending types")
677678
class TestIntrinsic(TestCase):
678679
def test_void_return(self):
679680
"""
@@ -826,7 +827,6 @@ def codegen(context, builder, signature, args):
826827
self.assertEqual("void_func docstring", void_func.__doc__)
827828

828829

829-
@skip_on_cudasim("Simulator does not support extending types")
830830
class TestRegisterJitable(unittest.TestCase):
831831
def test_no_flags(self):
832832
@register_jitable
@@ -846,7 +846,6 @@ def bar(x, y):
846846
self.assertEqual(x[0], 16)
847847

848848

849-
@skip_on_cudasim("Simulator does not support extending types")
850849
class TestOverloadPreferLiteral(TestCase):
851850
def test_overload(self):
852851
def prefer_lit(x):
@@ -902,7 +901,6 @@ def check_non_lit(x, res):
902901
self.assertEqual(c, 300)
903902

904903

905-
@skip_on_cudasim("Simulator does not support extending types")
906904
class TestNumbaInternalOverloads(TestCase):
907905
def test_signatures_match_overloaded_api(self):
908906
# This is a "best-effort" test to try and ensure that Numba's internal

0 commit comments

Comments
 (0)