SWDEV-334508 - Testing & fix for HIP samples on Linux and Windows. (#2711)

Change-Id: I6edc0d6dc7ce8f2223381baddacbc5063b6d4983
This commit is contained in:
ROCm CI Service Account authored and GitHub committed 2022-06-02 17:00:05 +05:30
1 parent 3ee51fcf98
commit 5e42fbedfd
28 files changed
+95 -31

No files matched your search

@@ -137,7 +137,11 @@ void RunBenchmark_H2D(ResultDatabase& resultDB) {
}
} else if (p_malloc_mode == MallocUnpinned) {
if (p_alignedhost) {
hostMem = (float*)aligned_alloc(p_alignedhost, numMaxFloats * sizeof(float));
#ifdef _WIN32
hostMem = (float*)_aligned_malloc(numMaxFloats * sizeof(float),p_alignedhost);
#else
hostMem = (float*)aligned_alloc(p_alignedhost, numMaxFloats * sizeof(float));
#endif
} else {
hostMem = new float[numMaxFloats];
}