-
-
Notifications
You must be signed in to change notification settings - Fork 51
NEW: Export CF_TORCH_CUDA_ARCH_LIST to environment #464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
33b2933
8ebd49f
721ceff
49fb407
4d6a51b
cbb6c2a
96fa997
e4b5b38
6f5c94b
99c202e
47fe3e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| @echo on | ||
|
|
||
| if not defined CF_TORCH_CUDA_ARCH_LIST ( | ||
| set "CF_TORCH_CUDA_ARCH_LIST=@cf_torch_cuda_arch_list@" | ||
| set "CF_TORCH_CUDA_ARCH_LIST_BACKUP=UNSET" | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
|
|
||
| if [[ ! -v CF_TORCH_CUDA_ARCH_LIST ]] | ||
| then | ||
| export CF_TORCH_CUDA_ARCH_LIST="@cf_torch_cuda_arch_list@" | ||
| export CF_TORCH_CUDA_ARCH_LIST_BACKUP="UNSET" | ||
|
||
| fi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| @echo on | ||
|
||
|
|
||
| if "%CF_TORCH_CUDA_ARCH_LIST_BACKUP%" == "UNSET" ( | ||
| set "CF_TORCH_CUDA_ARCH_LIST=" | ||
| set "CF_TORCH_CUDA_ARCH_LIST_BACKUP=" | ||
| ) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/bin/bash | ||
|
|
||
| if [[ "${CF_TORCH_CUDA_ARCH_LIST_BACKUP}" == "UNSET" ]] | ||
| then | ||
| unset CF_TORCH_CUDA_ARCH_LIST | ||
| unset CF_TORCH_CUDA_ARCH_LIST_BACKUP | ||
| fi |
Uh oh!
There was an error while loading. Please reload this page.