Check RMA functional test data in GPU kernel (#91)

[ROCm/rocshmem commit: c81722c339]
This commit is contained in:
Yiltan
2025-04-28 16:06:05 -04:00
committed by GitHub
parent 19e7b4798e
commit 8f135af156
6 changed files with 100 additions and 18 deletions
@@ -83,6 +83,8 @@ Tester::Tester(TesterArguments args) : args(args) {
CHECK_HIP(hipMalloc((void**)&timer, sizeof(long long int) * num_timers));
CHECK_HIP(hipMalloc((void**)&start_time, sizeof(long long int) * num_timers));
CHECK_HIP(hipMalloc((void**)&end_time, sizeof(long long int) * num_timers));
CHECK_HIP(hipHostMalloc((void**)&verification_error, sizeof(bool)));
*verification_error = false;
}
Tester::~Tester() {
@@ -92,6 +94,7 @@ Tester::~Tester() {
CHECK_HIP(hipEventDestroy(stop_event));
CHECK_HIP(hipEventDestroy(start_event));
CHECK_HIP(hipStreamDestroy(stream));
CHECK_HIP(hipFree(verification_error));
}
std::vector<Tester*> Tester::create(TesterArguments args) {