summaryrefslogtreecommitdiff
path: root/bitsandbytes/utils.py
diff options
context:
space:
mode:
authorTitus von Koeller <titus@vonkoeller.com>2022-07-27 21:16:04 -0700
committerTitus von Koeller <titus@vonkoeller.com>2022-07-27 21:16:04 -0700
commit5d90b38c4d280272106ad656808b35ff75bd46a0 (patch)
tree993fc302f0ea6890ed46dcc9c3de28815721d9f8 /bitsandbytes/utils.py
parentbd515328d70f344f935075f359c5aefc616878d5 (diff)
adding CLI tool for CUDA install debugging - intermediate commit
Diffstat (limited to 'bitsandbytes/utils.py')
-rw-r--r--bitsandbytes/utils.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitsandbytes/utils.py b/bitsandbytes/utils.py
new file mode 100644
index 0000000..a9eddf9
--- /dev/null
+++ b/bitsandbytes/utils.py
@@ -0,0 +1,7 @@
+import sys
+
+def print_err(s: str) -> None:
+ print(s, file=sys.stderr)
+
+def warn_of_missing_prerequisite(s: str) -> None:
+ print_err('WARNING, missing pre-requisite: ' + s)