Skip to content

Commit b054e9e

Browse files
committed
Rename MINIMAL_NVVMIR_TXT → MINIMAL_NVVMIR_TXT_TEMPLATE for clarity.
1 parent 4079a55 commit b054e9e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cuda_bindings/tests/test_nvvm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pytest
1010
from cuda.bindings import nvvm
1111

12-
MINIMAL_NVVMIR_TXT = b"""\
12+
MINIMAL_NVVMIR_TXT_TEMPLATE = b"""\
1313
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-i128:128:128-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
1414
1515
target triple = "nvptx64-nvidia-cuda"
@@ -127,7 +127,7 @@ def minimal_nvvmir(request):
127127
major, minor, debug_major, debug_minor = nvvm.ir_version()
128128

129129
if request.param == "txt":
130-
return MINIMAL_NVVMIR_TXT % (major, debug_major)
130+
return MINIMAL_NVVMIR_TXT_TEMPLATE % (major, debug_major)
131131

132132
bitcode_static_binascii = MINIMAL_NVVMIR_BITCODE_STATIC.get((major, debug_major))
133133
if bitcode_static_binascii:

toolshed/build_static_bitcode_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_minimal_nvvmir_txt_template():
3333
sys.path.insert(0, os.path.abspath(cuda_bindings_tests_dir))
3434
import test_nvvm
3535

36-
return test_nvvm.MINIMAL_NVVMIR_TXT
36+
return test_nvvm.MINIMAL_NVVMIR_TXT_TEMPLATE
3737

3838

3939
def main():

0 commit comments

Comments
 (0)