#include TEST_CASE("Unit_hipHostMalloc_4bytes") { int* d_a; auto res = hipHostMalloc(&d_a, sizeof(int), 0); REQUIRE(res == hipSuccess); res = hipHostFree(d_a); REQUIRE(res == hipSuccess); } TEST_CASE("Unit_hipMalloc_4bytes") { int* d_a; auto res = hipMalloc(&d_a, sizeof(int)); REQUIRE(res == hipSuccess); res = hipFree(d_a); REQUIRE(res == hipSuccess); }