Files
rocm-systems/tests/src/deviceLib/hipTestDeviceLimit.cpp
T

11 lines
208 B
C++
Raw Normal View History

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);
}