Skip to content

Commit ae58ae1

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in CudaRuntimeWrappers.cpp (NFC)
1 parent fb3bf5b commit ae58ae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
thread_local static int32_t defaultDevice = 0;
5858

5959
/// Helper method that checks environment value for debugging.
60-
bool isDebugEnabled() {
60+
static bool isDebugEnabled() {
6161
const char *kDebugEnvironmentVariable = "MLIR_CUDA_DEBUG";
6262
static bool isEnabled = getenv(kDebugEnvironmentVariable) != nullptr;
6363
return isEnabled;
@@ -71,7 +71,7 @@ bool isDebugEnabled() {
7171
} while (0)
7272

7373
// Returns default CUdevice
74-
CUdevice getDefaultCuDevice() {
74+
static CUdevice getDefaultCuDevice() {
7575
CUdevice device;
7676
CUDA_REPORT_IF_ERROR(cuDeviceGet(&device, /*ordinal=*/defaultDevice));
7777
return device;

0 commit comments

Comments
 (0)