66from kernel_tuner .backends import hip as kt_hip
77from kernel_tuner .core import KernelInstance , KernelSource
88
9- from .context import skip_if_no_hip
9+ from .context import skip_if_no_pyhip
1010
1111try :
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
5252def 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
7171def 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
9191def 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
105105def 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
118118def 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
151151def test_smem_args (env ):
152152 result , _ = tune_kernel (* env ,
153153 smem_args = dict (size = "block_size_x*4" ),
0 commit comments