File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -497,11 +497,12 @@ @implementation GGMLMetalClass
497497    if  (@available (macOS 10.12 , iOS 16.0 , *)) {
498498        GGML_LOG_INFO (" %s : recommendedMaxWorkingSetSize  = %8.2f  MB\n "  , __func__, device.recommendedMaxWorkingSetSize  / 1e6 );
499499    }
500- #elif  TARGET_OS_OSX
501-     if  (device.maxTransferRate  != 0 ) {
502-         GGML_LOG_INFO (" %s : maxTransferRate               = %8.2f  MB/s\n "  , __func__, device.maxTransferRate  / 1e6 );
503-     } else  {
504-         GGML_LOG_INFO (" %s : maxTransferRate               = built-in GPU\n "  , __func__);
500+     if  (@available (macOS 10.15 , *)) {
501+         if  (device.maxTransferRate  != 0 ) {
502+             GGML_LOG_INFO (" %s : maxTransferRate               = %8.2f  MB/s\n "  , __func__, device.maxTransferRate  / 1e6 );
503+         } else  {
504+             GGML_LOG_INFO (" %s : maxTransferRate               = built-in GPU\n "  , __func__);
505+         }
505506    }
506507#endif 
507508
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments