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
5b6abcc3
Commit
5b6abcc3
authored
Feb 28, 2019
by
Paul
Browse files
Formatting
parent
9db47771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
src/targets/gpu/include/migraphx/gpu/context.hpp
src/targets/gpu/include/migraphx/gpu/context.hpp
+3
-6
test/gpu/miopen.cpp
test/gpu/miopen.cpp
+1
-1
No files found.
src/targets/gpu/include/migraphx/gpu/context.hpp
View file @
5b6abcc3
...
...
@@ -34,7 +34,7 @@ struct hip_device
static
hip_stream_ptr
create_stream
()
{
hipStream_t
result
=
nullptr
;
auto
status
=
hipStreamCreate
(
&
result
);
auto
status
=
hipStreamCreate
(
&
result
);
// auto status = hipStreamCreateWithFlags(&result, hipStreamNonBlocking);
if
(
status
!=
hipSuccess
)
...
...
@@ -83,7 +83,7 @@ struct hip_device
void
sync
()
const
{
if
(
s
!=
nullptr
)
if
(
s
!=
nullptr
)
hipStreamSynchronize
(
s
.
get
());
}
...
...
@@ -169,10 +169,7 @@ struct context
if
(
n
>=
0
)
get_current_device
().
set_stream
(
n
);
}
void
create_events
(
int
num_of_events
)
{
get_current_device
().
create_events
(
num_of_events
);
}
void
create_events
(
int
num_of_events
)
{
get_current_device
().
create_events
(
num_of_events
);
}
void
record_event
(
int
event
)
{
get_current_device
().
record_event
(
event
);
}
void
wait_event
(
int
event
)
{
get_current_device
().
wait_event
(
event
);
}
...
...
test/gpu/miopen.cpp
View file @
5b6abcc3
...
...
@@ -130,7 +130,7 @@ migraphx::argument run_gpu(migraphx::program& p)
EXPECT
(
is_shared
(
ctx
,
p
.
get_context
()));
p
.
dry_run
(
m
);
EXPECT
(
is_shared
(
ctx
,
p
.
get_context
()));
auto
eval
=
p
.
eval
(
m
);
auto
eval
=
p
.
eval
(
m
);
auto
ret_val
=
migraphx
::
gpu
::
from_gpu
(
eval
);
return
ret_val
;
}
...
...
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