Add missing tests for hipHostMalloc (#2566)

[ROCm/hip-tests commit: 8b291f071a]
Cette révision appartient à :
Jatin Chaudhary
2022-06-10 16:46:23 +01:00
révisé par GitHub
Parent c52fae6f49
révision a9f5e0bd3d
6 fichiers modifiés avec 100 ajouts et 50 suppressions
+1 -2
Voir le fichier
@@ -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();