Silence warnings
Этот коммит содержится в:
родитель
e6c8bfc201
Коммит
04c6d1d01d
@ -48,7 +48,7 @@ static void *thread_test (void *arg) {
|
|||||||
timing = ((double) total.tv_sec + (double) total.tv_usec * 1e-6) / (double) ITERATIONS;
|
timing = ((double) total.tv_sec + (double) total.tv_usec * 1e-6) / (double) ITERATIONS;
|
||||||
|
|
||||||
printf ("Atomics thread finished. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
printf ("Atomics thread finished. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
||||||
total.tv_usec, (int)(timing / 1e-9));
|
(int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ static void *thread_test_exhaust (void *arg) {
|
|||||||
timing = ((double) total.tv_sec + (double) total.tv_usec * 1e-6) / (double) item_count;
|
timing = ((double) total.tv_sec + (double) total.tv_usec * 1e-6) / (double) item_count;
|
||||||
|
|
||||||
fprintf (stderr, "Exhaustive atomics thread finished. Popped %d items. Time: %d s %d us %d nsec/poppush\n", item_count,
|
fprintf (stderr, "Exhaustive atomics thread finished. Popped %d items. Time: %d s %d us %d nsec/poppush\n", item_count,
|
||||||
(int) total.tv_sec, total.tv_usec, (int)(timing / 1e-9));
|
(int) total.tv_sec, (int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -167,7 +167,7 @@ int main (int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("Single thread test. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
printf ("Single thread test. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
||||||
total.tv_usec, (int)(timing / 1e-9));
|
(int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
thread_test (&fifo);
|
thread_test (&fifo);
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ int main (int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("All threads finished. Thread count: %d Time: %d s %d us %d nsec/poppush\n",
|
printf ("All threads finished. Thread count: %d Time: %d s %d us %d nsec/poppush\n",
|
||||||
OPAL_FIFO_TEST_THREAD_COUNT, (int) total.tv_sec, total.tv_usec, (int)(timing / 1e-9));
|
OPAL_FIFO_TEST_THREAD_COUNT, (int) total.tv_sec, (int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
|
|
||||||
gettimeofday (&start, NULL);
|
gettimeofday (&start, NULL);
|
||||||
@ -226,7 +226,7 @@ int main (int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("All threads finished. Thread count: %d Time: %d s %d us %d nsec/poppush\n",
|
printf ("All threads finished. Thread count: %d Time: %d s %d us %d nsec/poppush\n",
|
||||||
OPAL_FIFO_TEST_THREAD_COUNT, (int) total.tv_sec, total.tv_usec, (int)(timing / 1e-9));
|
OPAL_FIFO_TEST_THREAD_COUNT, (int) total.tv_sec, (int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
for (int i = 0 ; i < ITEM_COUNT ; ++i) {
|
for (int i = 0 ; i < ITEM_COUNT ; ++i) {
|
||||||
|
@ -47,7 +47,7 @@ static void *thread_test (void *arg) {
|
|||||||
timing = ((double) total.tv_sec + (double) total.tv_usec * 1e-6) / (double) ITERATIONS;
|
timing = ((double) total.tv_sec + (double) total.tv_usec * 1e-6) / (double) ITERATIONS;
|
||||||
|
|
||||||
printf ("Atomics thread finished. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
printf ("Atomics thread finished. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
||||||
total.tv_usec, (int)(timing / 1e-9));
|
(int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -130,7 +130,7 @@ int main (int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("Single thread test. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
printf ("Single thread test. Time: %d s %d us %d nsec/poppush\n", (int) total.tv_sec,
|
||||||
total.tv_usec, (int)(timing / 1e-9));
|
(int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
thread_test (&lifo);
|
thread_test (&lifo);
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ int main (int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
printf ("All threads finished. Thread count: %d Time: %d s %d us %d nsec/poppush\n",
|
printf ("All threads finished. Thread count: %d Time: %d s %d us %d nsec/poppush\n",
|
||||||
OPAL_LIFO_TEST_THREAD_COUNT, (int) total.tv_sec, total.tv_usec, (int)(timing / 1e-9));
|
OPAL_LIFO_TEST_THREAD_COUNT, (int) total.tv_sec, (int)total.tv_usec, (int)(timing / 1e-9));
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
for (int i = 0 ; i < ITEM_COUNT ; ++i) {
|
for (int i = 0 ; i < ITEM_COUNT ; ++i) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user