SWDEV-269879 - Adding function that recommends optimal thread count

Change-Id: I42eb94a058c1b7f9253182e16ff1c3389a836d61
This commit is contained in:
cjatin
2021-01-18 15:04:11 +05:30
zatwierdzone przez Jatin Chaudhary
rodzic a12163b4e5
commit 7ba1a0cf72
7 zmienionych plików z 69 dodań i 11 usunięć
@@ -131,7 +131,7 @@ void run_multi_threads(uint32_t n, const std::vector<char>& buffer) {
int main() {
HIPCHECK(hipInit(0));
auto buffer = load_file();
run_multi_threads(min(THREADS * std::thread::hardware_concurrency(), MAX_THREADS), buffer);
run_multi_threads(getThreadCount(), buffer);
passed();
}