From fbcb14fc09bb9a9961509fa501d5c7923334a8af Mon Sep 17 00:00:00 2001 From: Laurent Morichetti Date: Mon, 23 May 2022 21:21:28 -0700 Subject: [PATCH] Fix typos Change-Id: I90df287a3b0f501a5dcb4b37a2bd3b9d5695f582 [ROCm/roctracer commit: 15f65a4d27c46dbd412d792822eaa9446712594f] --- projects/roctracer/inc/roctracer.h | 6 +++--- projects/roctracer/src/roctracer/loader.h | 2 +- projects/roctracer/src/tracer_tool/tracer_tool.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/roctracer/inc/roctracer.h b/projects/roctracer/inc/roctracer.h index 8287d77656..457532a469 100644 --- a/projects/roctracer/inc/roctracer.h +++ b/projects/roctracer/inc/roctracer.h @@ -22,7 +22,7 @@ * * \section introduction Introduction * - * ROC-tracer library, Runtimes Generic Callback/Activity APIs. + * ROCtracer library, Runtimes Generic Callback/Activity APIs. * * The goal of the implementation is to provide a generic independent from * specific runtime profiler to trace API and asynchronous activity. @@ -33,7 +33,7 @@ /** * \file - * ROC tracer API interface. + * ROCtracer API interface. */ #ifndef ROCTRACER_H_ @@ -499,7 +499,7 @@ typedef void (*roctracer_buffer_callback_t)(const char* begin, const char* end, /** * Memory pool properties. * - * Defines the propertis when a tracer memory pool is created. + * Defines the properties when a tracer memory pool is created. */ typedef struct { /** diff --git a/projects/roctracer/src/roctracer/loader.h b/projects/roctracer/src/roctracer/loader.h index bc85bc2d42..a58740e268 100644 --- a/projects/roctracer/src/roctracer/loader.h +++ b/projects/roctracer/src/roctracer/loader.h @@ -97,7 +97,7 @@ template class BaseLoader : public T { void* handle_; }; -// 'rocprofiler' library loader class +// ROCprofiler library loader class class RocpApi { public: typedef BaseLoader Loader; diff --git a/projects/roctracer/src/tracer_tool/tracer_tool.cpp b/projects/roctracer/src/tracer_tool/tracer_tool.cpp index b49dce2788..7c77afafc8 100644 --- a/projects/roctracer/src/tracer_tool/tracer_tool.cpp +++ b/projects/roctracer/src/tracer_tool/tracer_tool.cpp @@ -118,7 +118,7 @@ bool trace_pcs = false; // The below getter functions have been written intentionally to fix an issue // with constructor ordering. Previously when hip_api_vec and hsa_api_vec // were left as simple global variables, whenever the tool_load() function -// was called from "extern "C" CONSTRUCTOR_API void constructor()" of libtracer_tool.so +// was called from CONSTRUCTOR_API void constructor()" of libroctracer_tool.so // the ordering of std::vector constructor becomes undefined. This meant that you could assign // hip_api_vec and hsa_api_vec with a value in tool_load() and once the function returns, the // std::vector default constructor would execute later, causing the values to be lost. @@ -343,7 +343,7 @@ void hip_api_callback(uint32_t domain, uint32_t cid, const void* callback_data, if (data->phase == ACTIVITY_API_PHASE_ENTER) { hip_begin_timestamp = timestamp; } else { - // Post onit of HIP APU args + // Post init of HIP APU args hipApiArgsInit((hip_api_id_t)cid, const_cast(data)); entry = hip_api_trace_buffer->GetEntry(); @@ -968,7 +968,7 @@ extern "C" ROCTRACER_TOOL_EXPORT bool OnLoad(HsaApiTable* table, uint64_t runtim // Check for optimized stats const bool is_stats_opt = (getenv("ROCP_STATS_OPT") != NULL); - // HIP kernel ma pinstantiation + // HIP kernel map instantiation if (is_stats_opt) hip_kernel_map = new hip_kernel_map_t; // Enable tracing