Skip to content

Commit d8ccdbf

Browse files
committed
Standardize error handling and output across all examples (NVIDIA#1678)
- Remove success/completion fluff messages ("done!", "passed", etc.) - Use sys.exit(1) instead of sys.exit(0) for unsupported configurations - Send skip/warning/error messages to stderr - Replace user-facing assert with proper checks - Standardize sys.exit(-1) to sys.exit(1) Made-with: Cursor
1 parent 1abd97a commit d8ccdbf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cuda_bindings/examples/0_Introduction/clock_nvrtc_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

44
import platform
5+
import sys
56

67
import numpy as np
78
from common import common

0 commit comments

Comments
 (0)