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
6e453f1a
Unverified
Commit
6e453f1a
authored
Dec 10, 2022
by
kkHuang-amd
Committed by
GitHub
Dec 10, 2022
Browse files
Merge pull request #99 from ROCmSoftwarePlatform/dev/hubertlu/fused_dense_debug
Fix a bug in fused_dense_cuda on ROCm
parents
4dcf30a6
d63b5d1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
apex/contrib/test/run_rocm_extensions.py
apex/contrib/test/run_rocm_extensions.py
+1
-1
csrc/fused_dense.cpp
csrc/fused_dense.cpp
+1
-1
No files found.
apex/contrib/test/run_rocm_extensions.py
View file @
6e453f1a
...
...
@@ -2,7 +2,7 @@ import unittest
import
sys
test_dirs
=
[
"groupbn"
,
"layer_norm"
,
"multihead_attn"
,
"transducer"
,
"focal_loss"
,
"index_mul_2d"
,
"."
]
# "." for test_label_smoothing.py
test_dirs
=
[
"groupbn"
,
"fused_dense"
,
"layer_norm"
,
"multihead_attn"
,
"transducer"
,
"focal_loss"
,
"index_mul_2d"
,
"."
]
# "." for test_label_smoothing.py
ROCM_BLACKLIST
=
[
"layer_norm"
]
...
...
csrc/fused_dense.cpp
View file @
6e453f1a
...
...
@@ -62,7 +62,7 @@ std::vector<at::Tensor> linear_bias_backward(at::Tensor input, at::Tensor weight
// create output/workspace tensor
auto
d_weight
=
at
::
empty
({
out_features
,
in_features
},
input
.
type
());
#if defined(CUBLAS_VERSION) && CUBLAS_VERSION < 11600
#if
(
defined(CUBLAS_VERSION) && CUBLAS_VERSION < 11600
) || __HIP_PLATFORM_HCC__
auto
d_bias
=
d_output
.
view
({
-
1
,
out_features
}).
sum
(
0
,
false
);
#else
auto
d_bias
=
at
::
empty
({
out_features
},
input
.
type
());
...
...
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