[Openmp-commits] [openmp] [OpenMP][NFC] Remove unused clock function types and globals (PR #127684)
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 18 10:49:15 PST 2025
https://github.com/jpeyton52 created https://github.com/llvm/llvm-project/pull/127684
None
>From caf3c57004dfd1c29a3f9a02b59e5ba46b05d69a Mon Sep 17 00:00:00 2001
From: Jonathan Peyton <jonathan.l.peyton at intel.com>
Date: Tue, 18 Feb 2025 12:46:50 -0600
Subject: [PATCH] [OpenMP][NFC] Remove unused clock function types and globals
---
openmp/runtime/src/kmp.h | 12 ------------
openmp/runtime/src/kmp_global.cpp | 5 -----
2 files changed, 17 deletions(-)
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index 04bf6c3b34dac..7b565d12a9308 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -521,13 +521,6 @@ enum library_type {
library_throughput
};
-#if KMP_OS_LINUX
-enum clock_function_type {
- clock_function_gettimeofday,
- clock_function_clock_gettime
-};
-#endif /* KMP_OS_LINUX */
-
#if KMP_MIC_SUPPORTED
enum mic_type { non_mic, mic1, mic2, mic3, dummy };
#endif
@@ -3545,11 +3538,6 @@ extern int __kmp_hot_teams_mode;
extern int __kmp_hot_teams_max_level;
#endif
-#if KMP_OS_LINUX
-extern enum clock_function_type __kmp_clock_function;
-extern int __kmp_clock_function_param;
-#endif /* KMP_OS_LINUX */
-
#if KMP_MIC_SUPPORTED
extern enum mic_type __kmp_mic_type;
#endif
diff --git a/openmp/runtime/src/kmp_global.cpp b/openmp/runtime/src/kmp_global.cpp
index 5017cd3de4be5..ce803bb0d6079 100644
--- a/openmp/runtime/src/kmp_global.cpp
+++ b/openmp/runtime/src/kmp_global.cpp
@@ -242,11 +242,6 @@ enum sched_type __kmp_sch_map[kmp_sched_upper - kmp_sched_lower_ext +
// of public intel extension schedules
};
-#if KMP_OS_LINUX
-enum clock_function_type __kmp_clock_function;
-int __kmp_clock_function_param;
-#endif /* KMP_OS_LINUX */
-
#if KMP_MIC_SUPPORTED
enum mic_type __kmp_mic_type = non_mic;
#endif
More information about the Openmp-commits
mailing list