Added hipDeviceGetLimit api
1. hipDeviceGetLimit API for HCC path is added
2. Test for hipDeviceGetLimit API is added
3. The feature added only supports querying heap size
4. Corrected indents for malloc and free device functions
5. Removed redundant data structures
6. Added g_heap_malloc_size to store the heap size
Change-Id: If48d1b0ce9270e994f1c542cc283ddbb14746bbb
[ROCm/clr commit: e5325a1ab4]
이 커밋은 다음에 포함됨:
1 부모
0a5761a1de
커밋
cd32c9418e
4 파일이 변경됨
+80
-45
검색과 일치하는 파일 없음
@@ -0,0 +1,10 @@
|
||||
#include<hip/hip_runtime_api.h>
|
||||
#include<iostream>
|
||||
#include<assert.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
size_t heap;
|
||||
assert(hipSuccess == hipDeviceGetLimit(&heap, hipLimitMallocHeapSize));
|
||||
assert(heap == 4194304);
|
||||
}
|
||||
새 이슈에서 참조
사용자 차단