Skip to content

Commit f71f241

Browse files
committed
add --cuda-malloc, --disable-cuda-malloc cmd args
1 parent 6a07ea7 commit f71f241

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/cmd_args.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
parser.add_argument("--update-all-extensions", action='store_true', help="launch.py argument: download updates for all extensions when starting the program")
1010
parser.add_argument("--skip-python-version-check", action='store_true', help="launch.py argument: do not check python version")
1111
parser.add_argument("--skip-torch-cuda-test", action='store_true', help="launch.py argument: do not check if CUDA is able to work properly")
12+
cm_group = parser.add_mutually_exclusive_group()
13+
cm_group.add_argument("--cuda-malloc", action='store_true', help="Enable cudaMallocAsync (enabled by default for torch 2.0 and up).")
14+
cm_group.add_argument("--disable-cuda-malloc", action="store_true", help="Disable cudaMallocAsync.")
1215
parser.add_argument("--reinstall-xformers", action='store_true', help="launch.py argument: install the appropriate version of xformers even if you have some version already installed")
1316
parser.add_argument("--reinstall-torch", action='store_true', help="launch.py argument: install the appropriate version of torch even if you have some version already installed")
1417
parser.add_argument("--update-check", action='store_true', help="launch.py argument: check for updates at startup")

0 commit comments

Comments
 (0)