Skip to content

Commit

Permalink
fix xfail mark
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang authored Dec 8, 2024
1 parent b1f07a3 commit 8a6738b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cuda_core/tests/test_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from cuda.core.experimental._module import Kernel, ObjectCode


@pytest.fixture
def can_load_generated_ptx():
_, driver_ver = cuda.cuDriverGetVersion()
_, nvrtc_major, nvrtc_minor = nvrtc.nvrtcVersion()
Expand Down Expand Up @@ -42,7 +41,7 @@ def test_program_init_invalid_code_format():


# TODO: incorporate this check in Program
@pytest.mark.xfail(not can_load_generated_ptx, reason="PTX version too new")
@pytest.mark.xfail(not can_load_generated_ptx(), reason="PTX version too new")
def test_program_compile_valid_target_type():
code = 'extern "C" __global__ void my_kernel() {}'
program = Program(code, "c++")
Expand Down

0 comments on commit 8a6738b

Please sign in to comment.