Commit fa8763a689f5eb35dcc691edd4c2f0de8191c073
1 parent
b31c02eb
removed CUDA device output during FFT
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
stim/envi/agilent_binary.h
@@ -243,13 +243,13 @@ public: | @@ -243,13 +243,13 @@ public: | ||
243 | if (device >= 0) { //if a CUDA device is specified | 243 | if (device >= 0) { //if a CUDA device is specified |
244 | int dev_count; | 244 | int dev_count; |
245 | HANDLE_ERROR(cudaGetDeviceCount(&dev_count)); //get the number of CUDA devices | 245 | HANDLE_ERROR(cudaGetDeviceCount(&dev_count)); //get the number of CUDA devices |
246 | - std::cout << "Number of CUDA devices: " << dev_count << std::endl; //output the number of CUDA devices | 246 | + //std::cout << "Number of CUDA devices: " << dev_count << std::endl; //output the number of CUDA devices |
247 | cudaDeviceProp prop; | 247 | cudaDeviceProp prop; |
248 | - std::cout << "CUDA devices----" << std::endl; | 248 | + //std::cout << "CUDA devices----" << std::endl; |
249 | for (int d = 0; d < dev_count; d++) { //for each CUDA device | 249 | for (int d = 0; d < dev_count; d++) { //for each CUDA device |
250 | cudaGetDeviceProperties(&prop, d); //get the property of the first device | 250 | cudaGetDeviceProperties(&prop, d); //get the property of the first device |
251 | //float cc = prop.major + prop.minor / 10.0f; //calculate the compute capability | 251 | //float cc = prop.major + prop.minor / 10.0f; //calculate the compute capability |
252 | - std::cout << d << ": [" << prop.major << "." << prop.minor << "] " << prop.name << std::endl; //display the device information | 252 | + //std::cout << d << ": [" << prop.major << "." << prop.minor << "] " << prop.name << std::endl; //display the device information |
253 | //if(cc > best_device_cc){ | 253 | //if(cc > best_device_cc){ |
254 | // best_device_cc = cc; //if this is better than the previous device, use it | 254 | // best_device_cc = cc; //if this is better than the previous device, use it |
255 | // best_device_id = d; | 255 | // best_device_id = d; |
@@ -258,7 +258,7 @@ public: | @@ -258,7 +258,7 @@ public: | ||
258 | if (dev_count > 0 && dev_count > device) { //if the first device is not an emulator | 258 | if (dev_count > 0 && dev_count > device) { //if the first device is not an emulator |
259 | cudaGetDeviceProperties(&prop, device); //get the property of the requested CUDA device | 259 | cudaGetDeviceProperties(&prop, device); //get the property of the requested CUDA device |
260 | if (prop.major != 9999) { | 260 | if (prop.major != 9999) { |
261 | - std::cout << "Using device " << device << std::endl; | 261 | + //std::cout << "Using device " << device << std::endl; |
262 | HANDLE_ERROR(cudaSetDevice(device)); | 262 | HANDLE_ERROR(cudaSetDevice(device)); |
263 | } | 263 | } |
264 | } | 264 | } |