Skip to content

Commit 116de33

Browse files
authored
Fix Typos in Comments and Documentation for CUDA Driver and GDC (#7187)
Description: This pull request corrects minor typographical errors in comments and documentation within the CUDA driver and GDC modules. Specifically, it changes "maximum" to "maximum" in the driver comment and corrects "programatic" to "programmatic" in the GDC documentation. These changes improve code readability and maintain consistency in terminology. No functional code changes are included.
1 parent d5f6cd6 commit 116de33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

third_party/nvidia/backend/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def format_of(ty):
275275
static void _launch(int gridX, int gridY, int gridZ, int num_warps, int num_ctas, int launch_cooperative_grid, int launch_pdl, int clusterDimX, int clusterDimY, int clusterDimZ, int shared_memory, CUstream stream, CUfunction function, CUdeviceptr global_scratch{', ' + arg_decls if len(arg_decls) > 0 else ''}) {{
276276
void *params[] = {{ {', '.join(params)} }};
277277
if (gridX*gridY*gridZ > 0) {{
278-
// 4 attributes that we can currently pass maxmimum
278+
// 4 attributes that we can currently pass maximum
279279
CUlaunchAttribute launchAttr[4];
280280
static cuLaunchKernelEx_t cuLaunchKernelExHandle = NULL;
281281
if (cuLaunchKernelExHandle == NULL) {{

third_party/nvidia/language/cuda/gdc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def gdc_wait(_builder=None):
1616
This ensures all memory operations happening before the wait is visible to instructions after it,
1717
e.g. if the prior kernel writes to address "x" the new values will be visible in this kernel after the wait.
1818
19-
This instruction is also safe to execute when programatic dependent launch is disabled.
19+
This instruction is also safe to execute when programmatic dependent launch is disabled.
2020
2121
See https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#parallel-synchronization-and-communication-instructions-griddepcontrol for more details.
2222
"""
@@ -34,7 +34,7 @@ def gdc_launch_dependents(_builder=None):
3434
Repeated calls to this function have no effect past the first call, and the first call should be
3535
treated by the programmer as a hint to the runtime system to launch the next kernel.
3636
37-
This instruction is also safe to execute when programatic dependent launch is disabled.
37+
This instruction is also safe to execute when programmatic dependent launch is disabled.
3838
3939
See https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#parallel-synchronization-and-communication-instructions-griddepcontrol for more details.
4040
"""

0 commit comments

Comments
 (0)