mirror of
				https://github.com/NVIDIA/cuda-samples.git
				synced 2025-11-04 07:27:49 +08:00 
			
		
		
		
	simplePrintf.cu: "Compute capability" text (#299)
Compute %d.%d capability => Compute capability %d.%d
This commit is contained in:
		
							parent
							
								
									8a96d2eee7
								
							
						
					
					
						commit
						61bd39800d
					
				@ -57,7 +57,7 @@ int main(int argc, char **argv) {
 | 
			
		||||
  // Get GPU information
 | 
			
		||||
  checkCudaErrors(cudaGetDevice(&devID));
 | 
			
		||||
  checkCudaErrors(cudaGetDeviceProperties(&props, devID));
 | 
			
		||||
  printf("Device %d: \"%s\" with Compute %d.%d capability\n", devID, props.name,
 | 
			
		||||
  printf("Device %d: \"%s\" with Compute capability %d.%d\n", devID, props.name,
 | 
			
		||||
         props.major, props.minor);
 | 
			
		||||
 | 
			
		||||
  printf("printf() is called. Output:\n\n");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user