SWDEV-269879 - Adding function that recommends optimal thread count

Change-Id: I42eb94a058c1b7f9253182e16ff1c3389a836d61


[ROCm/hip commit: 7ba1a0cf72]
This commit is contained in:
cjatin
2021-01-18 15:04:11 +05:30
committed by Jatin Chaudhary
parent cb46badf20
commit e2d28dbe76
7 changed files with 69 additions and 11 deletions
+3
View File
@@ -158,6 +158,9 @@ extern const char* NULL_DEVICE;
#define TYPENAME(T) "?"
#endif
// Get Optimal Thread count size
size_t getHostThreadCount(const size_t memPerThread = 200 /* MB */, const size_t maxThreads = 0);
namespace HipTest {
// Returns the current system time in microseconds