Skip to content

Commit d2643af

Browse files
committed
test(core): use local ProgramOptions for cache-key derivation (Program._options is C-level)
1 parent 3fea328 commit d2643af

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cuda_core/tests/test_program_compile_cache.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@ def _return_sentinel(_program, *_args, **_kwargs):
8484
def test_cache_hit_short_circuits_compile(monkeypatch):
8585
"""On cache hit: get(key) returns, _program_compile_uncached is not called, no __setitem__."""
8686
sentinel = _make_sentinel_object_code()
87-
program = Program(_KERNEL, "c++", ProgramOptions(arch="sm_80"))
87+
options = ProgramOptions(arch="sm_80")
88+
program = Program(_KERNEL, "c++", options)
8889
key = make_program_cache_key(
8990
code=_KERNEL,
9091
code_type="c++",
91-
options=program._options,
92+
options=options,
9293
target_type="cubin",
9394
)
9495

0 commit comments

Comments
 (0)