Skip to content

Commit 4401b03

Browse files
committed
Used new pyip name
1 parent 5b64b2c commit 4401b03

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

test/test_file_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from kernel_tuner.file_utils import get_input_file, output_file_schema, store_metadata_file, store_output_file
1515
from kernel_tuner.util import delete_temp_file, check_argument_list
16-
from .context import skip_if_no_hip
16+
from .context import skip_if_no_pyhip
1717

1818
from .test_runners import cache_filename, env, tune_kernel # noqa: F401
1919

@@ -80,7 +80,7 @@ def hip_check(call_result):
8080
raise RuntimeError(str(err))
8181
return result
8282

83-
@skip_if_no_hip
83+
@skip_if_no_pyhip
8484
def test_check_argument_list_device_array():
8585
"""Test check_argument_list with DeviceArray"""
8686
float_kernel = """

test/test_hip_functions.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from kernel_tuner.backends import hip as kt_hip
77
from kernel_tuner.core import KernelInstance, KernelSource
88

9-
from .context import skip_if_no_hip
9+
from .context import skip_if_no_pyhip
1010

1111
try:
1212
from hip import hip, hiprtc
@@ -48,7 +48,7 @@ def env():
4848

4949
return ["vector_add", kernel_string, size, args, tune_params]
5050

51-
@skip_if_no_hip
51+
@skip_if_no_pyhip
5252
def test_ready_argument_list():
5353
size = 1000
5454
a = np.int32(75)
@@ -67,7 +67,7 @@ def test_ready_argument_list():
6767
assert gpu_args[1].value == a
6868
assert gpu_args[3].value == c
6969

70-
@skip_if_no_hip
70+
@skip_if_no_pyhip
7171
def test_compile():
7272
kernel_string = """
7373
__global__ void vector_add(float *c, float *a, float *b, int n) {
@@ -87,7 +87,7 @@ def test_compile():
8787
except Exception as e:
8888
pytest.fail("Did not expect any exception:" + str(e))
8989

90-
@skip_if_no_hip
90+
@skip_if_no_pyhip
9191
def test_memset_and_memcpy_dtoh():
9292
a = [1, 2, 3, 4]
9393
x = np.array(a).astype(np.int8)
@@ -101,7 +101,7 @@ def test_memset_and_memcpy_dtoh():
101101

102102
assert all(output == np.full(4, 4))
103103

104-
@skip_if_no_hip
104+
@skip_if_no_pyhip
105105
def test_memcpy_htod():
106106
a = [1, 2, 3, 4]
107107
x = np.array(a).astype(np.float32)
@@ -114,7 +114,7 @@ def test_memcpy_htod():
114114

115115
assert all(output == x)
116116

117-
@skip_if_no_hip
117+
@skip_if_no_pyhip
118118
def test_copy_constant_memory_args():
119119
kernel_string = """
120120
__constant__ float my_constant_data[100];
@@ -147,7 +147,7 @@ def test_copy_constant_memory_args():
147147

148148
assert (my_constant_data == output).all()
149149

150-
@skip_if_no_hip
150+
@skip_if_no_pyhip
151151
def test_smem_args(env):
152152
result, _ = tune_kernel(*env,
153153
smem_args=dict(size="block_size_x*4"),

test/test_observers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
skip_if_no_cupy,
1111
skip_if_no_opencl,
1212
skip_if_no_pycuda,
13-
skip_if_no_hip,
13+
skip_if_no_pyhip,
1414
skip_if_no_pynvml,
1515
)
1616
from .test_hip_functions import env as env_hip # noqa: F401
@@ -68,7 +68,7 @@ def test_register_observer_opencl(env_opencl):
6868
assert err.errisinstance(NotImplementedError)
6969
assert "OpenCL" in str(err.value)
7070

71-
@skip_if_no_hip
71+
@skip_if_no_pyhip
7272
def test_register_observer_hip(env_hip):
7373
with raises(NotImplementedError) as err:
7474
kernel_tuner.tune_kernel(*env_hip, observers=[RegisterObserver()], lang='HIP')

0 commit comments

Comments
 (0)