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
d18d38c4
Commit
d18d38c4
authored
May 10, 2019
by
Shucai Xiao
Browse files
clang format
parent
1898f87c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+4
-4
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+1
-1
No files found.
src/targets/gpu/lowering.cpp
View file @
d18d38c4
...
...
@@ -175,22 +175,22 @@ struct miopen_apply
void
add_quant_gemm_op
()
{
apply_map
.
emplace
(
"quant_dot"
,
[
=
](
instruction_ref
ins
)
{
auto
&&
op
=
any_cast
<
op
::
quant_dot
>
(
ins
->
get_operator
());
auto
&&
op
=
any_cast
<
op
::
quant_dot
>
(
ins
->
get_operator
());
std
::
vector
<
instruction_ref
>
refs
=
ins
->
inputs
();
// add additional arguments if need packing
if
(
refs
.
at
(
0
)
->
get_shape
().
transposed
())
if
(
refs
.
at
(
0
)
->
get_shape
().
transposed
())
{
auto
pack_a
=
insert_allocation
(
refs
.
at
(
0
),
refs
.
at
(
0
)
->
get_shape
());
refs
.
push_back
(
pack_a
);
}
if
(
!
refs
.
at
(
1
)
->
get_shape
().
transposed
())
if
(
!
refs
.
at
(
1
)
->
get_shape
().
transposed
())
{
auto
pack_b
=
insert_allocation
(
refs
.
at
(
1
),
refs
.
at
(
1
)
->
get_shape
());
refs
.
push_back
(
pack_b
);
}
auto
output
=
insert_allocation
(
ins
,
ins
->
get_shape
());
auto
output
=
insert_allocation
(
ins
,
ins
->
get_shape
());
refs
.
push_back
(
output
);
return
prog
->
replace_instruction
(
ins
,
miopen_quant_gemm
{
op
},
refs
);
...
...
src/targets/gpu/quant_gemm.cpp
View file @
d18d38c4
...
...
@@ -84,7 +84,7 @@ argument miopen_quant_gemm::compute(context& ctx,
rocblas_int
ldb
=
args
[
1
].
get_shape
().
strides
()[
transb
?
dim_1
:
dim_0
];
rocblas_int
ldc
=
args
[
2
].
get_shape
().
strides
()[
dim_0
];
auto
arg_b
=
args
.
at
(
1
);
auto
arg_b
=
args
.
at
(
1
);
std
::
size_t
pack_arg_num
=
0
;
if
(
!
transb
)
{
...
...
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