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
2685eb4b
Commit
2685eb4b
authored
Mar 04, 2019
by
Paul
Browse files
Insert argument at the begining
parent
160f6202
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/schedule.cpp
src/schedule.cpp
+1
-1
No files found.
src/schedule.cpp
View file @
2685eb4b
...
@@ -257,7 +257,7 @@ void schedule::apply(program& p) const
...
@@ -257,7 +257,7 @@ void schedule::apply(program& p) const
for
(
auto
ins1
:
split
.
second
[
i
])
for
(
auto
ins1
:
split
.
second
[
i
])
{
{
auto
args
=
split
.
second
[
j
];
auto
args
=
split
.
second
[
j
];
args
.
push_back
(
ins1
);
args
.
insert
(
args
.
begin
(),
ins1
);
auto
point
=
std
::
max_element
(
args
.
begin
(),
args
.
end
(),
[
&
](
auto
x
,
auto
y
)
{
auto
point
=
std
::
max_element
(
args
.
begin
(),
args
.
end
(),
[
&
](
auto
x
,
auto
y
)
{
return
std
::
distance
(
split
.
first
,
x
)
<
std
::
distance
(
split
.
first
,
y
);
return
std
::
distance
(
split
.
first
,
x
)
<
std
::
distance
(
split
.
first
,
y
);
...
...
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