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
c0dc2156
Commit
c0dc2156
authored
Aug 23, 2023
by
Paul
Browse files
Format
parent
8b756c8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/compile_ops.cpp
src/targets/gpu/compile_ops.cpp
+2
-1
No files found.
src/targets/gpu/compile_ops.cpp
View file @
c0dc2156
...
@@ -232,7 +232,8 @@ void par_compile(std::size_t n, F f)
...
@@ -232,7 +232,8 @@ void par_compile(std::size_t n, F f)
if
(
n
==
0
)
if
(
n
==
0
)
return
;
return
;
std
::
cout
<<
"Compile: "
<<
n
<<
std
::
endl
;
std
::
cout
<<
"Compile: "
<<
n
<<
std
::
endl
;
auto
d
=
std
::
min
(
n
,
value_of
(
MIGRAPHX_GPU_COMPILE_PARALLEL
{},
std
::
thread
::
hardware_concurrency
()));
auto
d
=
std
::
min
(
n
,
value_of
(
MIGRAPHX_GPU_COMPILE_PARALLEL
{},
std
::
thread
::
hardware_concurrency
()));
std
::
size_t
grainsize
=
std
::
ceil
(
static_cast
<
double
>
(
n
)
/
d
);
std
::
size_t
grainsize
=
std
::
ceil
(
static_cast
<
double
>
(
n
)
/
d
);
std
::
vector
<
parallel_work
>
pw
(
d
);
std
::
vector
<
parallel_work
>
pw
(
d
);
std
::
size_t
work
=
0
;
std
::
size_t
work
=
0
;
...
...
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