Skip to content

Commit b9f5595

Browse files
additional test
1 parent 8c8f5d6 commit b9f5595

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/test_runners.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ def test_diff_evo(env):
140140
assert len(result) > 0
141141

142142

143+
def test_restrictions(env):
144+
restrictions = [lambda p: p["block_size_x"] <= 512, "block_size_x > 128"]
145+
146+
result, _ = tune_kernel(*env,
147+
verbose=True,
148+
restrictions=restrictions,
149+
cache=cache_filename,
150+
simulation_mode=True)
151+
assert len(result) == 6
152+
153+
143154
@skip_if_no_pycuda
144155
def test_time_keeping(env):
145156
kernel_name, kernel_string, size, args, tune_params = env

0 commit comments

Comments
 (0)