|
|
@ -65,7 +65,6 @@ static void ParallelExecuteBlocks(
|
|
|
|
framework::Async([&executor, &prepared, &program, &scope, idx]() {
|
|
|
|
framework::Async([&executor, &prepared, &program, &scope, idx]() {
|
|
|
|
int run_block = idx; // thread local
|
|
|
|
int run_block = idx; // thread local
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// executor->Run(*program, scope, run_block, false, false);
|
|
|
|
|
|
|
|
executor->RunPreparedContext(prepared[run_block].get(), scope,
|
|
|
|
executor->RunPreparedContext(prepared[run_block].get(), scope,
|
|
|
|
false, false);
|
|
|
|
false, false);
|
|
|
|
} catch (std::exception &e) {
|
|
|
|
} catch (std::exception &e) {
|
|
|
|