Dateien
rocm-systems/hipamd/tests/src/deviceLib/hipTestDeviceLimit.cpp
T

11 Zeilen
208 B
C++

2016-10-12 19:58:48 -05:00
#include<hip/hip_runtime_api.h>
#include<iostream>
#include<assert.h>
int main()
{
size_t heap;
assert(hipSuccess == hipDeviceGetLimit(&heap, hipLimitMallocHeapSize));
assert(heap == 4194304);
}