Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing headers in mpi/utils.hpp #1

Open
zombie12138 opened this issue Feb 24, 2024 · 0 comments
Open

Missing headers in mpi/utils.hpp #1

zombie12138 opened this issue Feb 24, 2024 · 0 comments

Comments

@zombie12138
Copy link

Missing header file error occurs when compiling with GCC@13.2.0.

Details:

mpicxx  -c -fopenmp -g -Wall -Drestrict=__restrict__ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -ffast-math -march=armv8.2-a -mtune=tsv110 -DVERVOSE_MODE=0 -DVERTEX_REORDERING=0   -O3 -DNDEBUG main.cc -o main.o  
utils.hpp: In function 'void numa::launch_dummy_thread(int)':
utils.hpp:966:17: error: 'pthread_create' was not declared in this scope; did you mean 'pthread_t'?
  966 |                 pthread_create(&thread, NULL, empty_function, NULL);
      |                 ^~~~~~~~~~~~~~
      |                 pthread_t
utils.hpp:967:17: error: 'pthread_join' was not declared in this scope; did you mean 'thread_id'?
  967 |                 pthread_join(thread, NULL);
      |                 ^~~~~~~~~~~~
      |                 thread_id
utils.hpp: In function 'void setup_globals(int, char**, int, int)':
utils.hpp:1624:71: error: 'localtime' was not declared in this scope
 1624 |                 strftime(buf, sizeof(buf), "%Y/%m/%d %A %H:%M:%S %Z", localtime(&global_clock.l.tv_sec));
      |                                                                       ^~~~~~~~~
utils.hpp:42:1: note: 'localtime' is defined in header '<ctime>'; did you forget to '#include <ctime>'?
   41 | #include <deque>
  +++ |+#include <ctime>
   42 |
utils.hpp:1624:17: error: 'strftime' was not declared in this scope
 1624 |                 strftime(buf, sizeof(buf), "%Y/%m/%d %A %H:%M:%S %Z", localtime(&global_clock.l.tv_sec));
      |                 ^~~~~~~~
utils.hpp:1624:17: note: 'strftime' is defined in header '<ctime>'; did you forget to '#include <ctime>'?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant