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
b829300c
Commit
b829300c
authored
May 09, 2019
by
Shucai Xiao
Browse files
clang format
parent
03afa098
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/targets/gpu/device/include/migraphx/gpu/device/tensor.hpp
...targets/gpu/device/include/migraphx/gpu/device/tensor.hpp
+1
-1
src/targets/gpu/quant_gemm.cpp
src/targets/gpu/quant_gemm.cpp
+4
-4
No files found.
src/targets/gpu/device/include/migraphx/gpu/device/tensor.hpp
View file @
b829300c
src/targets/gpu/quant_gemm.cpp
View file @
b829300c
...
@@ -92,12 +92,12 @@ argument miopen_quant_gemm::compute(context& ctx,
...
@@ -92,12 +92,12 @@ argument miopen_quant_gemm::compute(context& ctx,
if
(
!
transb
)
if
(
!
transb
)
{
{
// use the algorithm to pack A
// use the algorithm to pack A
if
(
pack_1
.
empty
())
if
(
pack_1
.
empty
())
{
{
std
::
cout
<<
"allocate pack_1"
<<
std
::
endl
;
std
::
cout
<<
"allocate pack_1"
<<
std
::
endl
;
pack_1
=
allocate_gpu
(
args
.
at
(
1
).
get_shape
());
pack_1
=
allocate_gpu
(
args
.
at
(
1
).
get_shape
());
}
}
//assert(!pack_1.empty());
//
assert(!pack_1.empty());
device
::
pack_a
(
ctx
.
get_stream
().
get
(),
pack_1
,
args
[
1
]);
device
::
pack_a
(
ctx
.
get_stream
().
get
(),
pack_1
,
args
[
1
]);
auto
pb
=
from_gpu
(
pack_1
);
auto
pb
=
from_gpu
(
pack_1
);
std
::
cout
<<
"pb = "
<<
pb
<<
std
::
endl
;
std
::
cout
<<
"pb = "
<<
pb
<<
std
::
endl
;
...
@@ -107,7 +107,7 @@ argument miopen_quant_gemm::compute(context& ctx,
...
@@ -107,7 +107,7 @@ argument miopen_quant_gemm::compute(context& ctx,
// comment of the API
// comment of the API
if
(
transa
)
if
(
transa
)
{
{
if
(
pack_0
.
empty
())
if
(
pack_0
.
empty
())
{
{
std
::
cout
<<
"allocate pack_0"
<<
std
::
endl
;
std
::
cout
<<
"allocate pack_0"
<<
std
::
endl
;
pack_0
=
allocate_gpu
(
args
.
at
(
0
).
get_shape
());
pack_0
=
allocate_gpu
(
args
.
at
(
0
).
get_shape
());
...
...
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