Skip to content
Snippets Groups Projects
Commit a0054dd4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdo_print_features: print number of devices

parent 917c3c91
No related branches found
No related tags found
1 merge request!225M214003/develop
Subproject commit 3077cc81a21f7f5f2e1365ed600468807394d4c0
Subproject commit a1e98fcfa285a4bed52e94654d7830ee1877e63f
......@@ -155,6 +155,10 @@ cdo_print_features(void)
if (numProcs < concurrentThreads) fprintf(fp, "%u/", numProcs);
#endif
fprintf(fp, "%uthreads", concurrentThreads);
#ifdef HAVE_OPENMP4
auto numDevices = omp_get_num_devices();
if (numDevices > 0) fprintf(fp, " %ddevices", numDevices);
#endif
fprintf(fp, " c++%d", (int) ((__cplusplus - 200000) / 100));
#ifdef __FAST_MATH__
fprintf(fp, "/fastmath");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment