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
"src/vscode:/vscode.git/clone" did not exist on "a47f8e4b54fce9bdb91c907385b978f01657632e"
Commit
b829300c
authored
May 09, 2019
by
Shucai Xiao
Browse files
clang format
parent
03afa098
Changes
2
Hide 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
...
...
@@ -75,7 +75,7 @@ struct hip_tensor_descriptor
for
(
size_t
is
=
0
;
is
<
NDim
;
is
++
)
{
result
[
indices
[
is
]]
=
tidx
/
strides
[
indices
[
is
]];
tidx
=
tidx
%
strides
[
indices
[
is
]];
tidx
=
tidx
%
strides
[
indices
[
is
]];
}
return
result
;
}
...
...
src/targets/gpu/quant_gemm.cpp
View file @
b829300c
...
...
@@ -92,12 +92,12 @@ argument miopen_quant_gemm::compute(context& ctx,
if
(
!
transb
)
{
// use the algorithm to pack A
if
(
pack_1
.
empty
())
if
(
pack_1
.
empty
())
{
std
::
cout
<<
"allocate pack_1"
<<
std
::
endl
;
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
]);
auto
pb
=
from_gpu
(
pack_1
);
std
::
cout
<<
"pb = "
<<
pb
<<
std
::
endl
;
...
...
@@ -107,13 +107,13 @@ argument miopen_quant_gemm::compute(context& ctx,
// comment of the API
if
(
transa
)
{
if
(
pack_0
.
empty
())
if
(
pack_0
.
empty
())
{
std
::
cout
<<
"allocate pack_0"
<<
std
::
endl
;
pack_0
=
allocate_gpu
(
args
.
at
(
0
).
get_shape
());
}
device
::
pack_b
(
ctx
.
get_stream
().
get
(),
pack_0
,
args
[
0
]);
auto
a
=
from_gpu
(
args
[
0
]);
auto
a
=
from_gpu
(
args
[
0
]);
auto
pa
=
from_gpu
(
pack_0
);
std
::
cout
<<
"a = "
<<
a
<<
std
::
endl
;
std
::
cout
<<
"pa = "
<<
pa
<<
std
::
endl
;
...
...
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