Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
apex
Commits
47c269b6
"integration-tests/vscode:/vscode.git/clone" did not exist on "e36dfaa8de2d9a9fa67eeed5ce64fd5949916c99"
Unverified
Commit
47c269b6
authored
Feb 26, 2022
by
Masaki Kozuki
Committed by
GitHub
Feb 26, 2022
Browse files
build fused grad accum w/ wgrad only if cuda>10 (#1312)
parent
ddc08039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
28 deletions
+28
-28
setup.py
setup.py
+28
-28
No files found.
setup.py
View file @
47c269b6
...
@@ -298,9 +298,9 @@ if "--cuda_ext" in sys.argv:
...
@@ -298,9 +298,9 @@ if "--cuda_ext" in sys.argv:
)
)
# Check, if CUDA11 is installed for compute capability 8.0
# Check, if CUDA11 is installed for compute capability 8.0
cc_flag
=
[]
_
,
bare_metal_major
,
bare_metal_minor
=
get_cuda_bare_metal_version
(
CUDA_HOME
)
_
,
bare_metal_major
,
bare_metal_minor
=
get_cuda_bare_metal_version
(
CUDA_HOME
)
if
int
(
bare_metal_major
)
>=
11
:
if
int
(
bare_metal_major
)
>=
11
:
cc_flag
=
[]
cc_flag
.
append
(
"-gencode"
)
cc_flag
.
append
(
"-gencode"
)
cc_flag
.
append
(
"arch=compute_80,code=sm_80"
)
cc_flag
.
append
(
"arch=compute_80,code=sm_80"
)
if
int
(
bare_metal_minor
)
>
0
:
if
int
(
bare_metal_minor
)
>
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment