mirror of https://github.com/ecmwf/eccodes.git
ECC-604: Print out what each test does
This commit is contained in:
parent
25acd14b91
commit
2a16a080c0
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Test for ECC-604:
|
* Test for ECC-604: Each thread creates a new GRIB handle, clones it and writes it out
|
||||||
*/
|
*/
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -99,6 +99,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
if (parallel) {
|
if (parallel) {
|
||||||
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
||||||
|
printf("Each thread creates a new GRIB handle, clones it and writes it out\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Test for ECC-604: This version does not clone the GRIB handle
|
* Test for ECC-604: Each thread creates a new GRIB handle and writes it out.
|
||||||
|
* It does not clone the handle.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -96,6 +97,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
if (parallel) {
|
if (parallel) {
|
||||||
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
||||||
|
printf("Each thread creates a new GRIB handle and writes it out. No cloning the handle\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Test for ECC-604: No output writing
|
* Test for ECC-604: Each thread creates a new GRIB handle and clones it.
|
||||||
|
* No output writing.
|
||||||
*/
|
*/
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
@ -94,6 +95,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
if (parallel) {
|
if (parallel) {
|
||||||
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
printf("Running parallel in %ld threads. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
||||||
|
printf("Each thread creates a new GRIB handle and clones it. No output writing\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
printf("Running sequentially in %ld runs. %ld iterations\n", NUM_THREADS, FILES_PER_ITERATION);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue