Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
28e6013a
Commit
28e6013a
authored
Mar 12, 2019
by
Paul
Browse files
Fix gcc compiler issues
parent
9cd70d63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/schedule_test.cpp
test/schedule_test.cpp
+4
-4
No files found.
test/schedule_test.cpp
View file @
28e6013a
...
...
@@ -101,14 +101,14 @@ struct wait_event
};
using
instruction_map
=
std
::
unordered_map
<
migraphx
::
instruction_ref
,
std
::
size_t
>
;
using
int_map
=
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>
;
using
wait_map
=
std
::
unordered_map
<
migraphx
::
instruction_ref
,
std
::
shared_ptr
<
std
::
vector
<
std
::
size_t
>>>
;
struct
schedule_model_test
{
std
::
shared_ptr
<
instruction_map
>
ins2stream
=
std
::
make_shared
<
instruction_map
>
();
std
::
shared_ptr
<
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>>
wait2stream
=
std
::
make_shared
<
std
::
unordered_map
<
std
::
size_t
,
std
::
size_t
>>
();
std
::
shared_ptr
<
int_map
>
wait2stream
=
std
::
make_shared
<
int_map
>
();
std
::
shared_ptr
<
wait_map
>
ins2wait_for
=
std
::
make_shared
<
wait_map
>
();
std
::
size_t
concurrency
()
const
{
return
4
;
}
void
sched
(
migraphx
::
program
&
,
migraphx
::
instruction_ref
ins
,
std
::
size_t
n
)
const
...
...
@@ -190,8 +190,8 @@ struct schedule_target
for
(
auto
ins2
:
conflicts
[
j
])
{
// If both instructions are on the same stream then dont check for a conflict
if
(
has_stream
(
ins1
)
and
has_stream
(
ins2
)
and
get_stream
(
ins1
)
==
get_stream
(
ins2
))
if
(
this
->
has_stream
(
ins1
)
and
this
->
has_stream
(
ins2
)
and
this
->
get_stream
(
ins1
)
==
this
->
get_stream
(
ins2
))
continue
;
CHECK
(
::
check_conflicts
(
p
,
ins1
,
ins2
)
==
result
);
}
...
...
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