Skip to content

Commit ff130f2

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in LevelZeroRuntimeWrappers.cpp (NFC)
1 parent 170b5fd commit ff130f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ struct DynamicEventPool {
328328
}
329329
};
330330

331-
L0RTContextWrapper &getRtContext() {
331+
static L0RTContextWrapper &getRtContext() {
332332
thread_local static L0RTContextWrapper rtContext(0);
333333
return rtContext;
334334
}
335335

336-
DynamicEventPool &getDynamicEventPool() {
336+
static DynamicEventPool &getDynamicEventPool() {
337337
thread_local static DynamicEventPool dynEventPool{&getRtContext()};
338338
return dynEventPool;
339339
}
@@ -492,8 +492,8 @@ extern "C" void mgpuMemcpy(void *dst, void *src, size_t sizeBytes,
492492
}
493493

494494
template <typename PATTERN_TYPE>
495-
void mgpuMemset(void *dst, PATTERN_TYPE value, size_t count,
496-
StreamWrapper *stream) {
495+
static void mgpuMemset(void *dst, PATTERN_TYPE value, size_t count,
496+
StreamWrapper *stream) {
497497
L0RTContextWrapper &rtContext = getRtContext();
498498
auto listType =
499499
rtContext.copyEngineMaxMemoryFillPatternSize >= sizeof(PATTERN_TYPE)

0 commit comments

Comments
 (0)