Skip to content

Commit 265ba01

Browse files
committed
update the test
1 parent b82591f commit 265ba01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cuda_core/tests/test_linker.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
addition_kernel = "__device__ int C(int a, int b) { return a + b; }"
1010

1111

12-
@pytest.fixture(scope="module")
12+
@pytest.fixture(scope="function")
1313
def compile_ptx_functions(init_cuda):
1414
object_code_a_ptx = Program(empty_entrypoint_kernel, "c++").compile("ptx")
1515
object_code_b_ptx = Program(empty_kernel, "c++").compile("ptx")
@@ -18,7 +18,7 @@ def compile_ptx_functions(init_cuda):
1818
return object_code_a_ptx, object_code_b_ptx, object_code_c_ptx
1919

2020

21-
@pytest.fixture(scope="module")
21+
@pytest.fixture(scope="function")
2222
def compile_ltoir_functions(init_cuda):
2323
object_code_a_ltoir = Program(empty_entrypoint_kernel, "c++").compile("ltoir", options=("-dlto",))
2424
object_code_b_ltoir = Program(empty_kernel, "c++").compile("ltoir", options=("-dlto",))
@@ -47,7 +47,6 @@ def compile_ltoir_functions(init_cuda):
4747
LinkerOptions(arch=ARCH, xptxas=["-v"]),
4848
LinkerOptions(arch=ARCH, split_compile=0),
4949
LinkerOptions(arch=ARCH, split_compile_extended=1),
50-
LinkerOptions(arch=ARCH, jump_table_density=100),
5150
LinkerOptions(arch=ARCH, no_cache=True),
5251
],
5352
)

0 commit comments

Comments
 (0)