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
d67e7961
"...composable_kernel_onnxruntime.git" did not exist on "86185bd7ce1b84696f064822e05837dd63e4f218"
Commit
d67e7961
authored
Jan 21, 2019
by
Paul
Browse files
Formatting
parent
50488584
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/include/migraphx/par_for.hpp
src/include/migraphx/par_for.hpp
+2
-2
No files found.
src/include/migraphx/par_for.hpp
View file @
d67e7961
...
@@ -40,9 +40,9 @@ void par_for_impl(std::size_t n, std::size_t threadsize, F f)
...
@@ -40,9 +40,9 @@ void par_for_impl(std::size_t n, std::size_t threadsize, F f)
std
::
vector
<
joinable_thread
>
threads
(
threadsize
);
std
::
vector
<
joinable_thread
>
threads
(
threadsize
);
// Using const here causes gcc 5 to ICE
// Using const here causes gcc 5 to ICE
#if(!defined(__GNUC__) || __GNUC__ != 5)
#if(!defined(__GNUC__) || __GNUC__ != 5)
const
const
#endif
#endif
std
::
size_t
grainsize
=
std
::
ceil
(
static_cast
<
double
>
(
n
)
/
threads
.
size
());
std
::
size_t
grainsize
=
std
::
ceil
(
static_cast
<
double
>
(
n
)
/
threads
.
size
());
std
::
size_t
work
=
0
;
std
::
size_t
work
=
0
;
std
::
generate
(
threads
.
begin
(),
threads
.
end
(),
[
=
,
&
work
]
{
std
::
generate
(
threads
.
begin
(),
threads
.
end
(),
[
=
,
&
work
]
{
...
...
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