Move the global arrays for hip malloc/free

from a header into a source file such that
there's only an unique copy in an executable
and prevent wasting static memory on the host

Change-Id: Id5b62766f77809c8d7b47892cb7149c490dcbdb9


[ROCm/hip commit: 0ff408a56c]
이 커밋은 다음에 포함됨:
Siu Chi Chan가 2018-11-01 16:20:35 -04:00를 커밋했습니다
1 부모 fc3076badf
커밋 1159b4aa05
2 파일이 변경됨
+7 -5

검색과 일치하는 파일 없음

+3
파일 보기
@@ -28,6 +28,9 @@ THE SOFTWARE.
#include "hip_hcc_internal.h"
#include "trace_helper.h"
__device__ char __hip_device_heap[__HIP_SIZE_OF_HEAP];
__device__ uint32_t __hip_device_page_flag[__HIP_NUM_PAGES];
// Internal HIP APIS:
namespace hip_internal {