mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-31 03:54:33 +00:00 
			
		
		
		
	Merge pull request #361 from edbennett/fix-setdevice-message
make message about setdevice consistent with configure script
This commit is contained in:
		| @@ -83,11 +83,11 @@ void acceleratorInit(void) | ||||
|     printf("AcceleratorCudaInit: using default device \n"); | ||||
|     printf("AcceleratorCudaInit: assume user either uses a) IBM jsrun, or \n"); | ||||
|     printf("AcceleratorCudaInit: b) invokes through a wrapping script to set CUDA_VISIBLE_DEVICES, UCX_NET_DEVICES, and numa binding \n"); | ||||
|     printf("AcceleratorCudaInit: Configure options --enable-summit, --enable-select-gpu=no \n"); | ||||
|     printf("AcceleratorCudaInit: Configure options --enable-setdevice=no \n"); | ||||
|   } | ||||
| #else | ||||
|   printf("AcceleratorCudaInit: rank %d setting device to node rank %d\n",world_rank,rank); | ||||
|   printf("AcceleratorCudaInit: Configure options --enable-select-gpu=yes \n"); | ||||
|   printf("AcceleratorCudaInit: Configure options --enable-setdevice=yes \n"); | ||||
|   cudaSetDevice(rank); | ||||
| #endif | ||||
|   if ( world_rank == 0 )  printf("AcceleratorCudaInit: ================================================\n"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user