File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,11 @@ static executorch::runtime::Error success_with_compiler =
391391#endif
392392
393393extern  " 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
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments