Merge pull request #1559 from vsytch/win10_aligned_alloc

Fixes for hipMemcpy_simple on Windows

[ROCm/clr commit: 465581612e]
이 커밋은 다음에 포함됨:
Rahul Garg 작성하고 GitHub가 2019-10-23 13:10:59 -07:00를 커밋함
커밋 764135d242
2 파일이 변경됨
+6 -3

검색과 일치하는 파일 없음

+2 -2
파일 보기
@@ -120,8 +120,8 @@ void simpleTest2(size_t numElements, bool usePinnedHost) {
HIPCHECK(hipHostFree(A_h1));
HIPCHECK(hipHostFree(A_h2));
} else {
free(A_h1);
free(A_h2);
aligned_free(A_h1);
aligned_free(A_h2);
}
}
+4 -1
파일 보기
@@ -99,10 +99,13 @@ THE SOFTWARE.
#ifdef _WIN64
#include <tchar.h>
#define aligned_alloc _aligned_malloc
#define aligned_alloc(x,y) _aligned_malloc(y,x)
#define aligned_free(x) _aligned_free(x)
#define popen(x,y) _popen(x,y)
#define pclose(x) _pclose(x)
#define setenv(x,y,z) _putenv_s(x,y)
#else
#define aligned_free(x) free(x)
#endif
// standard command-line variables: