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
6cdd0c9c
Commit
6cdd0c9c
authored
Aug 11, 2018
by
Paul
Browse files
Fix memory access error in launch
parent
89f6abf3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
src/targets/gpu/hip_contiguous.cpp
src/targets/gpu/hip_contiguous.cpp
+1
-17
No files found.
src/targets/gpu/hip_contiguous.cpp
View file @
6cdd0c9c
...
...
@@ -21,7 +21,7 @@ __global__ void launcher(F f)
auto
launch
(
std
::
size_t
global
,
std
::
size_t
local
)
{
return
[
&
](
auto
f
)
{
return
[
=
](
auto
f
)
{
assert
(
local
>
0
);
assert
(
global
>
0
);
using
f_type
=
decltype
(
f
);
...
...
@@ -107,22 +107,6 @@ struct hip_tensor_descriptor
size_t
strides
[
NDim
]
=
{};
};
// template <typename T, size_t NDim>
// __global__ void contiguous_gpu(const T* a,
// hip_tensor_descriptor<NDim> a_desc,
// T* at,
// hip_tensor_descriptor<NDim> at_desc,
// size_t nelements)
// {
// for(size_t i = blockIdx.x * blockDim.x + threadIdx.x; i < nelements;
// i += blockDim.x * gridDim.x)
// {
// hip_index<NDim> s = at_desc.multi(i);
// size_t lidx = a_desc.linear(s);
// at[i] = a[lidx];
// }
// }
void
hip_contiguous
(
migraph
::
shape
output_shape
,
migraph
::
argument
arg
,
migraph
::
argument
result
)
{
visit_all
(
result
,
arg
)([
&
](
auto
output
,
auto
input
)
{
...
...
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