SWDEV-277697 - Adding Infra and dependent libs: Catch2 and json parser, for new HIP Testing framework
Change-Id: Iedfa041ec9acc13eeb631ff67e1677e2fe29463d
[ROCm/hip-tests commit: be6809d8d1]
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#include <hip_test_common.hh>
|
||||
|
||||
TEST_CASE("MemsetBasic") {
|
||||
int* d_a;
|
||||
auto res = hipMalloc(&d_a, sizeof(int));
|
||||
REQUIRE(res == hipSuccess);
|
||||
res = hipMemset(d_a, 0, sizeof(int));
|
||||
REQUIRE(res == hipSuccess);
|
||||
hipFree(d_a);
|
||||
}
|
||||
|
||||
TEST_CASE("HostMemsetBasic") {
|
||||
int* d_a;
|
||||
auto res = hipHostMalloc(&d_a, sizeof(int), 0);
|
||||
REQUIRE(res == hipSuccess);
|
||||
res = hipMemset(d_a, 0, sizeof(int));
|
||||
REQUIRE(res == hipSuccess);
|
||||
hipHostFree(d_a);
|
||||
}
|
||||
Reference in New Issue
Block a user