[Openmp-commits] [openmp] [OpenMP] Fix use of ompt_start_tool in ompd test. (PR #97616)

Hansang Bae via Openmp-commits openmp-commits at lists.llvm.org
Wed Jul 3 11:21:09 PDT 2024


https://github.com/hansangbae created https://github.com/llvm/llvm-project/pull/97616

None

>From 491139f3a6cf342a52ba36a4fa50ad62a5e0cece Mon Sep 17 00:00:00 2001
From: Hansang Bae <hansang.bae at intel.com>
Date: Wed, 3 Jul 2024 13:18:05 -0500
Subject: [PATCH] [OpenMP] Fix use of ompt_start_tool in ompd test.

---
 openmp/libompd/test/ompt_plugin.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openmp/libompd/test/ompt_plugin.h b/openmp/libompd/test/ompt_plugin.h
index 4488e6884a06c..74cb625ecb375 100644
--- a/openmp/libompd/test/ompt_plugin.h
+++ b/openmp/libompd/test/ompt_plugin.h
@@ -127,8 +127,8 @@ static void ompt_finalize(ompt_data_t *tool_data) {}
 
 // "This func will be invoked by OpenMP implementation, refer spec: 4.2.1"
 // NOLINTNEXTLINE
-static ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
-                                                 const char *runtime_version) {
+ompt_start_tool_result_t *ompt_start_tool(unsigned int omp_version,
+                                          const char *runtime_version) {
   static ompt_start_tool_result_t ompt_start_tool_result = {
       &ompt_initialize, &ompt_finalize, {0}};
   return &ompt_start_tool_result;



More information about the Openmp-commits mailing list