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
12d83996
Unverified
Commit
12d83996
authored
Feb 18, 2019
by
Paul Fultz II
Committed by
GitHub
Feb 18, 2019
Browse files
Merge pull request #178 from ROCmSoftwarePlatform/disable-null-stream
Disable null stream by default
parents
a5b0afa0
645ce4f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/include/migraphx/gpu/context.hpp
src/targets/gpu/include/migraphx/gpu/context.hpp
+3
-3
No files found.
src/targets/gpu/include/migraphx/gpu/context.hpp
View file @
12d83996
...
...
@@ -11,7 +11,7 @@ namespace migraphx {
inline
namespace
MIGRAPHX_INLINE_NS
{
namespace
gpu
{
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_
DIS
ABLE_NULL_STREAM
)
MIGRAPHX_DECLARE_ENV_VAR
(
MIGRAPHX_
EN
ABLE_NULL_STREAM
)
struct
hip_device
{
...
...
@@ -40,7 +40,7 @@ struct hip_device
hipStream_t
get
()
{
if
(
enabled
(
MIGRAPHX_
DIS
ABLE_NULL_STREAM
{}))
if
(
not
enabled
(
MIGRAPHX_
EN
ABLE_NULL_STREAM
{}))
{
setup
();
if
(
s
==
nullptr
)
...
...
@@ -53,7 +53,7 @@ struct hip_device
auto
create_miopen_handle
()
{
if
(
enabled
(
MIGRAPHX_
DIS
ABLE_NULL_STREAM
{}))
if
(
not
enabled
(
MIGRAPHX_
EN
ABLE_NULL_STREAM
{}))
return
make_obj
<
miopen_handle
>
(
&
miopenCreateWithStream
,
get
());
else
return
make_obj
<
miopen_handle
>
(
&
miopenCreate
);
...
...
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