2
0

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

Change-Id: I6edc0d6dc7ce8f2223381baddacbc5063b6d4983
Este cometimento está contido em:
ROCm CI Service Account
2022-06-02 17:00:05 +05:30
cometido por GitHub
ascendente 3ee51fcf98
cometimento 5e42fbedfd
28 ficheiros modificados com 95 adições e 31 eliminações
+5 -1
Ver ficheiro
@@ -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];
}