Skip to content

Commit 3a32786

Browse files
committed
fixup! feat(core.utils): ruff format the added docstring example
1 parent 45cde8c commit 3a32786

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cuda_core/cuda/core/utils/_program_cache.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,11 @@ def make_program_cache_key(
516516
from cuda.core import Program, ProgramOptions
517517
from cuda.core.utils import FileStreamProgramCache, make_program_cache_key
518518
519-
source = "extern \"C\" __global__ void k(int *a){ *a = 1; }"
519+
source = 'extern "C" __global__ void k(int *a){ *a = 1; }'
520520
options = ProgramOptions(arch="sm_80")
521521
522522
with FileStreamProgramCache("/var/cache/myapp/cuda") as cache:
523-
key = make_program_cache_key(
524-
code=source, code_type="c++", options=options, target_type="cubin"
525-
)
523+
key = make_program_cache_key(code=source, code_type="c++", options=options, target_type="cubin")
526524
obj = cache.get(key)
527525
if obj is None:
528526
obj = Program(source, "c++", options=options).compile("cubin")

0 commit comments

Comments
 (0)