functional_tests: use size_t for size variable (#190)

Changed the data type of `size` to `size_t` in all functional tests to ensure
consistency with rocSHMEM APIs.
This commit is contained in:
Avinash Kethineedi
2025-07-03 13:26:54 -05:00
zatwierdzone przez GitHub
rodzic 0c40bc58d8
commit 7a5c6f86d7
50 zmienionych plików z 183 dodań i 173 usunięć
@@ -77,12 +77,12 @@ PingPongTester::PingPongTester(TesterArguments args) : Tester(args) {
PingPongTester::~PingPongTester() { rocshmem_free(r_buf); }
void PingPongTester::resetBuffers(uint64_t size) {
void PingPongTester::resetBuffers(size_t size) {
memset(r_buf, 0, sizeof(int) * args.num_wgs);
}
void PingPongTester::launchKernel(dim3 gridSize, dim3 blockSize, int loop,
uint64_t size) {
size_t size) {
size_t shared_bytes = 0;
hipLaunchKernelGGL(PingPongTest, gridSize, blockSize, shared_bytes, stream,
@@ -93,4 +93,4 @@ void PingPongTester::launchKernel(dim3 gridSize, dim3 blockSize, int loop,
num_timed_msgs = loop;
}
void PingPongTester::verifyResults(uint64_t size) {}
void PingPongTester::verifyResults(size_t size) {}