This would have helped here (but is still open):
  

      github.com/pytorch/pytorch
  

  
    
  
	  
  

  
    
      Add Specific Warning/Error For Unsupported GPU or Systems 2
    

    
      
        opened 
        
          
        
        Apr 6, 2020
      
      


      
        
          
          legoritma
        
      
    

    
        
          module: cuda
        
        
          triaged
        
        
          enhancement
        
    
  


  
    ## 🚀 Feature
Add specific Warning/Error message for unsupported GPU or Systems …

## Motivation

Currently prebuilt binaries only support specific cuda versions and systems. When an unsupported device install pytorch and try to use cuda, it gets generic error "RuntimeError: CUDA error: no kernel image is available for execution on the device" This error is very confusing for beginners and easy to miss original reason.

## Pitch

Instead of getting generic error. More specific error would be nice. Briefly explaining current binary is not supports GPU or system. Maybe it can also include some FAQ link for further details or solutions

## Alternatives


## Additional context

Original bug report [#31285](https://github.com/pytorch/pytorch/issues/31285)


cc @ngimel