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

two sc_config.h created. Which is which? #312

Open
LukasvdWiel opened this issue Jul 15, 2024 · 4 comments
Open

two sc_config.h created. Which is which? #312

LukasvdWiel opened this issue Jul 15, 2024 · 4 comments

Comments

@LukasvdWiel
Copy link

LukasvdWiel commented Jul 15, 2024

Dear p4est team,

I am trying to install p4est with MPI on a Rocky Linux 9.4 cluster.

After cmaking with P4EST_ENABLE_MPI enabled, by setting in CMakeCache.txt:

//P4EST MPI support
P4EST_ENABLE_MPI:BOOL=1

I see two nc-config.h files being generated in the build directory:

sc/include/sc_config.h
include/sc_config.h

De sc one has indeed: #define SC_ENABLE_MPI 1
The other one does not enable MPI

When I next try to build p4est, also with in

include/p4est_config.h

/* Define to 1 if we are using MPI */
#define P4EST_ENABLE_MPI 1

A conflict arises in a check src/p4est_base.h
where is validated:

#if
(defined (P4EST_ENABLE_MPI) && !defined (SC_ENABLE_MPI)) ||
(!defined (P4EST_ENABLE_MPI) && defined (SC_ENABLE_MPI))
#error "MPI configured differently in p4est and libsc"
#endif

Should I ignore the sc/include/sc_config.h,
and manually edit include/sc_config.h,
or is there more nuance to this?

Thank you for your time and expertise,

Lukas

@cburstedde
Copy link
Owner

cburstedde commented Jul 15, 2024 via email

@cburstedde
Copy link
Owner

I'm pinging @scivision; maybe they know an elegant way to turn this around.

@cburstedde
Copy link
Owner

This may need some digging, maybe @mkirilin has an idea to straighten this out?

@mkirilin
Copy link
Collaborator

I tested p4est build by cmake with both possible options of libsc: as submodule and as an installed library. None of them demonstrates the behavior described in the topic.

I would ask @LukasvdWiel to validate the issue still persists with the latest versions of p4est and libsc develop branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants