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

comm_nb_request.hpp:80:3: error: unknown type name 'MPI_Request' #2478

Open
yurivict opened this issue Jan 15, 2025 · 0 comments
Open

comm_nb_request.hpp:80:3: error: unknown type name 'MPI_Request' #2478

yurivict opened this issue Jan 15, 2025 · 0 comments

Comments

@yurivict
Copy link

In file included from /usr/ports/misc/lbann/work/lbann-caa8e5d/src/objective_functions/weight_regularization/l2.cpp:27:
In file included from /usr/ports/misc/lbann/work/lbann-caa8e5d/include/lbann/objective_functions/weight_regularization/l2.hpp:30:
/usr/ports/misc/lbann/work/lbann-caa8e5d/include/lbann/comm_nb_request.hpp:80:3: error: unknown type name 'MPI_Request'
  MPI_Request raw_mpi_req = MPI_REQUEST_NULL;
  ^

include/lbann/comm_nb_request.hpp is missing the mpi.h include.

This patch fixes this error:

--- include/lbann/comm_nb_request.hpp.orig      2025-01-15 05:37:57 UTC
+++ include/lbann/comm_nb_request.hpp
@@ -33,6 +33,8 @@
 #include <Al.hpp>
 #endif // LBANN_HAS_ALUMINUM
 
+#include <mpi.h>
+
 namespace lbann {
  
 namespace Al {

Version: 0.104
clang-18
FreeBSD 14.2

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