"vscode:/vscode.git/clone" did not exist on "f536a7085f980fe0f83153a84a7f45cc6257cca3"
Commit c0dc2156 authored by Paul's avatar Paul
Browse files

Format

parent 8b756c8b
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment