Skip to content

Commit b3b654d

Browse files
committed
hacks
1 parent 3f56f13 commit b3b654d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backends/cuda/runtime/cuda_backend.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,11 @@ static executorch::runtime::Error success_with_compiler =
391391
#endif
392392

393393
extern "C" CUDA_BACKEND_INIT_EXPORT void InitCudaBackend() {
394+
// Log immediately to confirm function is entered
395+
ET_LOG(Info, "InitCudaBackend: Function entered");
396+
394397
#ifdef _WIN32
398+
ET_LOG(Info, "InitCudaBackend: Windows path");
395399
// On Windows, explicitly register the backend since DLL static initializers
396400
// don't run reliably
397401
static bool initialized = false;
@@ -408,10 +412,12 @@ extern "C" CUDA_BACKEND_INIT_EXPORT void InitCudaBackend() {
408412
ET_LOG(Info, "CUDA backend already initialized");
409413
}
410414
#else
415+
ET_LOG(Info, "InitCudaBackend: Non-Windows path");
411416
// On other platforms, static initialization already happened
412-
ET_LOG(Info, "CUDA backend using static initialization");
413417
(void)success_with_compiler;
414418
#endif
419+
420+
ET_LOG(Info, "InitCudaBackend: Function exiting");
415421
}
416422

417423
} // namespace executorch::backends

0 commit comments

Comments
 (0)