-
Notifications
You must be signed in to change notification settings - Fork 760
Open
Description
The reduce_stddev.c example is missing an include directive for the header <time.h>.
Running make results in the following error:
reduce_stddev.c: In function ‘main’:
reduce_stddev.c:43:9: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
43 | srand(time(NULL)*world_rank); // Seed the random number generator of processes uniquely
| ^~~~
reduce_stddev.c:15:1: note: ‘time’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
14 | #include <assert.h>
+++ |+#include <time.h>
15 |
make: *** [makefile:10: reduce_stddev] Error 1```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels