Skip to content

refactor: move MPI_Finalize C wrapper to pure Fortran #26

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

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Conversation

gxyd
Copy link
Collaborator

@gxyd gxyd commented Mar 19, 2025

Towards completing the issue: #21

@gxyd
Copy link
Collaborator Author

gxyd commented Mar 19, 2025

This is interesting, the run: https://github.com/gxyd/c_mpi/actions/runs/13945829170/job/39032692275?pr=26 failed with the error:

+++ TEST=validation
+++ MPIEXEC=/Users/runner/micromamba/envs/c_mpi_gfortran_env/bin/mpiexec
+++ cp /Users/runner/work/c_mpi/c_mpi/tests/pot3d/testsuite/validation/input/br_input_tiny_bin.bin /Users/runner/work/c_mpi/c_mpi/tests/pot3d/testsuite/validation/input/pot3d.dat /Users/runner/work/c_mpi/c_mpi/tests/pot3d/testsuite/validation/run/
+++ cd /Users/runner/work/c_mpi/c_mpi/tests/pot3d/testsuite/validation/run
+++ echo 'Running POT3D with 1 MPI rank...'
+++ /Users/runner/micromamba/envs/c_mpi_gfortran_env/bin/mpiexec -np 1 /Users/runner/work/c_mpi/c_mpi/tests/pot3d/bin/pot3d
Running POT3D with 1 MPI rank...
./validate.sh: line 11:  2268 Abort trap: 6           ${MPIEXEC} -np 1 ${POT3D_HOME}/bin/pot3d > pot3d.log 2> pot3d.err
Error: Process completed with exit code 134.

Though, locally I don't get any error (on macOS with GFortran's optimization enabled)

@gxyd
Copy link
Collaborator Author

gxyd commented Mar 19, 2025

Could there be a bug in the CI setup? Because, I'm accessing the same directory structure in different CI jobs.

@gxyd
Copy link
Collaborator Author

gxyd commented Mar 19, 2025

Let me try re-running the CI.

@gxyd
Copy link
Collaborator Author

gxyd commented Mar 19, 2025

Now all the CI checks pass.

@adit4443ya
Copy link
Collaborator

I guess CI setups are correct
Can't say anything about that error

@gxyd gxyd requested a review from adit4443ya March 20, 2025 13:44
Copy link
Collaborator

@adit4443ya adit4443ya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest of the Changes are good!!

@gxyd
Copy link
Collaborator Author

gxyd commented Mar 20, 2025

Perfect. Thanks for the review @adit4443ya , I'll merge this then.

@gxyd gxyd merged commit 24953de into main Mar 20, 2025
21 of 24 checks passed
@gxyd gxyd deleted the rem_mpi_c branch March 20, 2025 13:50
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

Successfully merging this pull request may close these issues.

2 participants