diff --git a/src/main.cpp b/src/main.cpp index a935485..275c9f2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -809,6 +809,7 @@ int main(int argc, char** argv) } int total_jobs_proc = 0; + int jobs_proc_per_gpu[16] = {0}; for (int i=0; iget_heap_budget(); + if (path_is_directory(inputpath) && path_is_directory(outputpath)) + { + // multiple gpu jobs share the same heap + heap_budget /= jobs_proc_per_gpu[gpuid[i]]; + } + // more fine-grained tilesize policy here if (model.find(PATHSTR("models-nose")) != path_t::npos || model.find(PATHSTR("models-se")) != path_t::npos) {