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 | 243 | if (device >= 0) { //if a CUDA device is specified |
244 | 244 | int dev_count; |
245 | 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 | 247 | cudaDeviceProp prop; |
248 | - std::cout << "CUDA devices----" << std::endl; | |
248 | + //std::cout << "CUDA devices----" << std::endl; | |
249 | 249 | for (int d = 0; d < dev_count; d++) { //for each CUDA device |
250 | 250 | cudaGetDeviceProperties(&prop, d); //get the property of the first device |
251 | 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 | 253 | //if(cc > best_device_cc){ |
254 | 254 | // best_device_cc = cc; //if this is better than the previous device, use it |
255 | 255 | // best_device_id = d; |
... | ... | @@ -258,7 +258,7 @@ public: |
258 | 258 | if (dev_count > 0 && dev_count > device) { //if the first device is not an emulator |
259 | 259 | cudaGetDeviceProperties(&prop, device); //get the property of the requested CUDA device |
260 | 260 | if (prop.major != 9999) { |
261 | - std::cout << "Using device " << device << std::endl; | |
261 | + //std::cout << "Using device " << device << std::endl; | |
262 | 262 | HANDLE_ERROR(cudaSetDevice(device)); |
263 | 263 | } |
264 | 264 | } | ... | ... |