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
ColossalAI
Commits
5682e6d3
Unverified
Commit
5682e6d3
authored
Dec 26, 2022
by
Jiarui Fang
Committed by
GitHub
Dec 26, 2022
Browse files
[hotfix] correcnt cpu_optim runtime compilation (#2197)
parent
6642cebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/kernel/op_builder/cpu_adam.py
colossalai/kernel/op_builder/cpu_adam.py
+1
-1
No files found.
colossalai/kernel/op_builder/cpu_adam.py
View file @
5682e6d3
...
@@ -48,7 +48,7 @@ class CPUAdamBuilder(Builder):
...
@@ -48,7 +48,7 @@ class CPUAdamBuilder(Builder):
sources
=
[
os
.
path
.
join
(
'colossalai/kernel/cuda_native/csrc'
,
path
)
for
path
in
self
.
sources
],
sources
=
[
os
.
path
.
join
(
'colossalai/kernel/cuda_native/csrc'
,
path
)
for
path
in
self
.
sources
],
include_dirs
=
self
.
extra_include_paths
,
include_dirs
=
self
.
extra_include_paths
,
extra_compile_args
=
{
extra_compile_args
=
{
'cxx'
:
[
'-O3'
]
+
self
.
version_dependent_macros
+
self
.
extra_c
uda
_flags
,
'cxx'
:
[
'-O3'
]
+
self
.
version_dependent_macros
+
self
.
extra_c
xx
_flags
,
'nvcc'
:
'nvcc'
:
append_nvcc_threads
([
'-O3'
,
'--use_fast_math'
]
+
self
.
version_dependent_macros
+
append_nvcc_threads
([
'-O3'
,
'--use_fast_math'
]
+
self
.
version_dependent_macros
+
self
.
extra_cuda_flags
)
self
.
extra_cuda_flags
)
...
...
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