Skip to content

Commit be43e41

Browse files
committed
fix: check the QNX example gate via platform.system()
QNX is an operating system rather than a machine architecture, so checking platform.machine() can miss the requirement_not_met() path on QNX hosts. Use platform.system() so the example is waived consistently on that platform. Made-with: Cursor
1 parent d3d36a5 commit be43e41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_bindings/examples/3_CUDA_Features/global_to_shmem_async_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ def matrix_multiply(dims_a, dims_b, kernel_number):
11421142
def main():
11431143
check_compute_capability_too_low(find_cuda_device(), (7, 0))
11441144

1145-
if platform.machine() == "qnx":
1145+
if platform.system() == "QNX":
11461146
requirement_not_met("globalToShmemAsyncCopy is not supported on QNX")
11471147

11481148
version = check_cuda_errors(cuda.cuDriverGetVersion())

0 commit comments

Comments
 (0)