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

IMB-MPI1 2021.3 doesn't compile #40

Open
chrpospiech opened this issue Mar 3, 2022 · 1 comment
Open

IMB-MPI1 2021.3 doesn't compile #40

chrpospiech opened this issue Mar 3, 2022 · 1 comment

Comments

@chrpospiech
Copy link

Recently, some C++ parts have been added to IMB which introduces name mangling to the link step. The linker now complains that IMB_Barrier is listed “Extern C”in IMB_prototypes.h, but not in IMB_declare.h. The declaration in IMB_declare.h, however, is not really needed, as only the string IMB_Barrier is used in a subsequent CPP macro definition.Commenting this declaration out fixes the problem.The fix in git diff format is attached below. Please consider adopting this patch in future versions.

diff --git a/src_c/IMB_declare.h b/src_c/IMB_declare.h
index 8425545..49f749d 100644
--- a/src_c/IMB_declare.h
+++ b/src_c/IMB_declare.h
@@ -249,7 +249,7 @@ extern int IMB_internal_barrier;
(B) = (type*) IMB_v_alloc(sizeof(type)*(Len), where);
}

-void IMB_Barrier(MPI_Comm comm);
+// void IMB_Barrier(MPI_Comm comm);
#define IMB_do_n_barriers(comm, iter)
{
int _ii; \

@JuliaRS
Copy link
Contributor

JuliaRS commented Jan 8, 2024

@chrpospiech hi,
thank you for your report.
Is it still available for you ?

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

2 participants