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
gaoqiong
MIGraphX
Commits
ae21ecbf
Commit
ae21ecbf
authored
May 05, 2019
by
Shucai Xiao
Browse files
clang format
parent
6835a32e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/targets/gpu/gemm.cpp
src/targets/gpu/gemm.cpp
+1
-1
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+3
-4
No files found.
src/targets/gpu/gemm.cpp
View file @
ae21ecbf
...
...
@@ -215,7 +215,7 @@ argument miopen_gemm::compute(context& ctx,
auto
to_pointer
=
[
&
](
auto
&&
arg
)
{
return
to_rocblas_type
(
as
.
from
(
arg
.
data
()));
};
if
(
num_matrices
==
1
)
{
// the rocblas_gemm API handles inputs and output matrices as
// the rocblas_gemm API handles inputs and output matrices as
// column-major format. When doing a C = A * B, we actually do
// C^T = (B^T) * (A^T). That is the reason we input args[1] as
// A and args[0] as B in calling the rocblas_gemm.
...
...
src/targets/gpu/quant_gemm.cpp
View file @
ae21ecbf
...
...
@@ -91,7 +91,7 @@ argument miopen_quant_gemm::compute(context& ctx,
assert
(
transb
or
(
ldb
%
4
==
0
));
// need to pack B in thi scenario
if
(
!
transb
)
if
(
!
transb
)
{
int
nb
=
4
;
for
(
int
i_m
=
0
;
i_m
<
m
;
i_m
++
)
...
...
@@ -104,16 +104,15 @@ argument miopen_quant_gemm::compute(context& ctx,
}
// need to pack A in this scenario
if
(
transa
)
if
(
transa
)
{
}
auto
num_matrices
=
std
::
accumulate
(
out_lens
.
rbegin
()
+
2
,
out_lens
.
rend
(),
std
::
size_t
{
1
},
std
::
multiplies
<
std
::
size_t
>
());
if
(
num_matrices
==
1
)
{
// the rocblas_gemm API handles inputs and output matrices as
// the rocblas_gemm API handles inputs and output matrices as
// column-major format. When doing a C = A * B, we actually do
// C^T = (B^T) * (A^T). That is the reason we input args[1] as
// A and args[0] as B in calling the rocblas_gemm.
...
...
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