Title: Missing include for time.h in reduce_stddev.c · Issue #115 · mpitutorial/mpitutorial · GitHub
Open Graph Title: Missing include for time.h in reduce_stddev.c · Issue #115 · mpitutorial/mpitutorial
X Title: Missing include for time.h in reduce_stddev.c · Issue #115 · mpitutorial/mpitutorial
Description: The reduce_stddev.c example is missing an include directive for the header
Open Graph Description: The reduce_stddev.c example is missing an include directive for the header
X 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: er...
Opengraph URL: https://github.com/mpitutorial/mpitutorial/issues/115
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing include for time.h in reduce_stddev.c","articleBody":"The reduce_stddev.c example is missing an include directive for the header \u003ctime.h\u003e.\n\nRunning make results in the following error:\n\n```mpicc -o reduce_stddev reduce_stddev.c -lm\nreduce_stddev.c: In function ‘main’:\nreduce_stddev.c:43:9: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]\n 43 | srand(time(NULL)*world_rank); // Seed the random number generator of processes uniquely\n | ^~~~\nreduce_stddev.c:15:1: note: ‘time’ is defined in header ‘\u003ctime.h\u003e’; this is probably fixable by adding ‘#include \u003ctime.h\u003e’\n 14 | #include \u003cassert.h\u003e\n +++ |+#include \u003ctime.h\u003e\n 15 | \nmake: *** [makefile:10: reduce_stddev] Error 1```","author":{"url":"https://github.com/melroy-tellis","@type":"Person","name":"melroy-tellis"},"datePublished":"2026-01-06T19:42:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/115/mpitutorial/issues/115"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:359b53ca-c488-7243-03c4-55be585d3524 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81DE:3148AB:1B0B484:2328B7D:6976CE70 |
| html-safe-nonce | 0b2c4ce161bc5a7a29b1fad0ad3becb44dc6a8391e4c786d96e31cd653b308d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MURFOjMxNDhBQjoxQjBCNDg0OjIzMjhCN0Q6Njk3NkNFNzAiLCJ2aXNpdG9yX2lkIjoiODYyNjQwNDg3NDc3MTY4MDg4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 165d82d2869a4b2ee354c27b4509a895e7778ebc533cb0b76977c8038e1690e1 |
| hovercard-subject-tag | issue:3786302296 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mpitutorial/mpitutorial/115/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b7dba66b202311ca108cbc26c7fe42a8922ebc9824307eb2ea12df95a46ec3f/mpitutorial/mpitutorial/issues/115 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b7dba66b202311ca108cbc26c7fe42a8922ebc9824307eb2ea12df95a46ec3f/mpitutorial/mpitutorial/issues/115 |
| og:image:alt | The reduce_stddev.c example is missing an include directive for the header |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melroy-tellis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/mpitutorial/mpitutorial git https://github.com/mpitutorial/mpitutorial.git |
| octolytics-dimension-user_id | 69527633 |
| octolytics-dimension-user_login | mpitutorial |
| octolytics-dimension-repository_id | 6915389 |
| octolytics-dimension-repository_nwo | mpitutorial/mpitutorial |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 6915389 |
| octolytics-dimension-repository_network_root_nwo | mpitutorial/mpitutorial |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width