diff --git a/projects/roctracer/inc/roctx.h b/projects/roctracer/inc/roctx.h index 55baa4c0ae..9831c4bdee 100644 --- a/projects/roctracer/inc/roctx.h +++ b/projects/roctracer/inc/roctx.h @@ -56,7 +56,7 @@ const char* roctracer_error_string(); // A marker created by given ASCII massage void roctxMarkA(const char* message); -void roctxMark(const char* message) { return roctxMarkA(message); } +#define roctxMark(message) roctxMarkA(message) //////////////////////////////////////////////////////////////////////////////// // Ranges annotating API @@ -64,7 +64,7 @@ void roctxMark(const char* message) { return roctxMarkA(message); } // Returns the 0 based level of a nested range being started by given message associated to this range. // A negative value is returned on the error. int roctxRangePushA(const char* message); -int roctxRangePush(const char* message) { return roctxRangePushA(message); } +#define roctxRangePush(message) roctxRangePushA(message) // Marks the end of a nested range. // A negative value is returned on the error. diff --git a/projects/roctracer/test/MatrixTranspose_test/MatrixTranspose.cpp b/projects/roctracer/test/MatrixTranspose_test/MatrixTranspose.cpp index 79a3845588..3a756125b2 100644 --- a/projects/roctracer/test/MatrixTranspose_test/MatrixTranspose.cpp +++ b/projects/roctracer/test/MatrixTranspose_test/MatrixTranspose.cpp @@ -111,21 +111,21 @@ int main() { // correlation reagion33 roctracer_activity_push_external_correlation_id(33); - roctxMarkA("before hipLaunchKernel"); - roctxRangePushA("hipLaunchKernel"); + roctxMark("before hipLaunchKernel"); + roctxRangePush("hipLaunchKernel"); // Lauching kernel from host hipLaunchKernel(matrixTranspose, dim3(WIDTH / THREADS_PER_BLOCK_X, WIDTH / THREADS_PER_BLOCK_Y), dim3(THREADS_PER_BLOCK_X, THREADS_PER_BLOCK_Y), 0, 0, gpuTransposeMatrix, gpuMatrix, WIDTH); - roctxMarkA("after hipLaunchKernel"); + roctxMark("after hipLaunchKernel"); // correlation reagion end roctracer_activity_pop_external_correlation_id(NULL); // Memory transfer from device to host - roctxRangePushA("hipMemcpy"); + roctxRangePush("hipMemcpy"); hipMemcpy(TransposeMatrix, gpuTransposeMatrix, NUM * sizeof(float), hipMemcpyDeviceToHost);