Skip to content

Commit

Permalink
leverage fixture in fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
ksimpson-work committed Jan 6, 2025
1 parent d4e966e commit 41c4407
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cuda_core/tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,11 @@ def get_saxpy_kernel(init_cuda):
}
"""

dev = Device()
dev.set_current()
dev.create_stream()

# prepare program
prog = Program(code, code_type="c++")
mod = prog.compile(
"cubin",
options=(
"-std=c++11",
"-arch=sm_" + "".join(f"{i}" for i in dev.compute_capability),
),
options=("-arch=sm_" + "".join(f"{i}" for i in Device().compute_capability),),
name_expressions=("saxpy<float>", "saxpy<double>"),
)

Expand Down

0 comments on commit 41c4407

Please sign in to comment.