aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp')
-rw-r--r--mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
index 21eaf28..d072827 100644
--- a/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
@@ -328,12 +328,12 @@ struct DynamicEventPool {
}
};
-L0RTContextWrapper &getRtContext() {
+static L0RTContextWrapper &getRtContext() {
thread_local static L0RTContextWrapper rtContext(0);
return rtContext;
}
-DynamicEventPool &getDynamicEventPool() {
+static DynamicEventPool &getDynamicEventPool() {
thread_local static DynamicEventPool dynEventPool{&getRtContext()};
return dynEventPool;
}
@@ -492,8 +492,8 @@ extern "C" void mgpuMemcpy(void *dst, void *src, size_t sizeBytes,
}
template <typename PATTERN_TYPE>
-void mgpuMemset(void *dst, PATTERN_TYPE value, size_t count,
- StreamWrapper *stream) {
+static void mgpuMemset(void *dst, PATTERN_TYPE value, size_t count,
+ StreamWrapper *stream) {
L0RTContextWrapper &rtContext = getRtContext();
auto listType =
rtContext.copyEngineMaxMemoryFillPatternSize >= sizeof(PATTERN_TYPE)