aboutsummaryrefslogtreecommitdiff
path: root/code/sunlab/environment/base/cuda.py
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2024-11-11 12:29:32 -0800
committerChristian C <cc@localhost>2024-11-11 12:29:32 -0800
commitb85ee9d64a536937912544c7bbd5b98b635b7e8d (patch)
treecef7bc17d7b29f40fc6b1867d0ce0a742d5583d0 /code/sunlab/environment/base/cuda.py
Initial commit
Diffstat (limited to 'code/sunlab/environment/base/cuda.py')
-rw-r--r--code/sunlab/environment/base/cuda.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/sunlab/environment/base/cuda.py b/code/sunlab/environment/base/cuda.py
new file mode 100644
index 0000000..a5c813e
--- /dev/null
+++ b/code/sunlab/environment/base/cuda.py
@@ -0,0 +1,4 @@
+import os
+
+os.environ["CUDA_VISIBLE_DEVICES"] = "1"
+from . import *