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
48bf509a
Commit
48bf509a
authored
Aug 23, 2018
by
Paul
Browse files
Formatting
parent
ed9ff879
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/device/contiguous.cpp
src/targets/gpu/device/contiguous.cpp
+2
-2
src/targets/gpu/device/include/migraph/gpu/device/launch.hpp
src/targets/gpu/device/include/migraph/gpu/device/launch.hpp
+1
-1
No files found.
src/targets/gpu/device/contiguous.cpp
View file @
48bf509a
...
...
@@ -89,8 +89,8 @@ void contiguous(shape output_shape, argument arg, argument result)
const
auto
&
s
=
arg
.
get_shape
();
hip_tensor_descriptor
<
ndim
>
a_desc
(
s
.
lens
(),
s
.
strides
());
hip_tensor_descriptor
<
ndim
>
at_desc
(
output_shape
.
lens
(),
output_shape
.
strides
());
auto
*
a
=
input
.
data
();
auto
*
at
=
output
.
data
();
auto
*
a
=
input
.
data
();
auto
*
at
=
output
.
data
();
gs_launch
(
s
.
elements
())([
=
](
auto
i
)
{
size_t
lidx
=
a_desc
.
linear
(
at_desc
.
multi
(
i
));
at
[
i
]
=
a
[
lidx
];
...
...
src/targets/gpu/device/include/migraph/gpu/device/launch.hpp
View file @
48bf509a
...
...
@@ -35,7 +35,7 @@ auto launch(std::size_t global, std::size_t local)
auto
gs_launch
(
std
::
size_t
n
,
std
::
size_t
local
=
512
)
{
std
::
size_t
groups
=
1
+
n
/
local
;
std
::
size_t
groups
=
1
+
n
/
local
;
std
::
size_t
nglobal
=
std
::
min
<
std
::
size_t
>
(
512
,
groups
)
*
local
;
return
[
=
](
auto
f
)
{
...
...
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