Add missing tests for hipHostMalloc (#2566)

This commit is contained in:
Jatin Chaudhary
2022-06-10 16:46:23 +01:00
committed by GitHub
parent 08b7053a37
commit fbdda38cf7
6 changed files with 100 additions and 50 deletions
+1 -2
View File
@@ -51,8 +51,7 @@ static size_t getMemoryAmount() {
#endif
}
static size_t getHostThreadCount(const size_t memPerThread,
const size_t maxThreads) {
static inline size_t getHostThreadCount(const size_t memPerThread, const size_t maxThreads) {
if (memPerThread == 0) return 0;
auto memAmount = getMemoryAmount();
const auto processor_count = std::thread::hardware_concurrency();