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

IO: Parallel Particle ASCII Output #109

Merged
merged 5 commits into from
Apr 11, 2022

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Apr 11, 2022

Write one file per MPI rank (and pot. OpenMP thread).
Update post-processing logic to process this.

Needed for #103

To Do:

  • add a parallel test

X-ref:

@ax3l ax3l requested a review from atmyers April 11, 2022 16:37
This was referenced Apr 11, 2022
@ax3l ax3l force-pushed the topic-parallelParticleASCIIdiags branch from 3a65c22 to 8087229 Compare April 11, 2022 16:39
This is the same hack as in `amrex::ParticleContainer::WriteAsciiFile`:
This will obviously not scale and also has the wrong assumption
that MPI-sync is the same as parallel FS sync (it is not).
@ax3l ax3l force-pushed the topic-parallelParticleASCIIdiags branch from 8087229 to 0998e32 Compare April 11, 2022 17:17
@ax3l ax3l force-pushed the topic-parallelParticleASCIIdiags branch from 268a6aa to 6c89d25 Compare April 11, 2022 18:30
OpenMP: Intentionally overwrite Environment control for now
@ax3l
Copy link
Member Author

ax3l commented Apr 11, 2022

I also added a first MPI-parallel test (#103) now:

3: Test command: /home/axel/src/spack/var/spack/environments/warpx-omp-dev/.spack-env/view/bin/mpiexec "-n" "2" "/home/axel/src/impactx/build/bin/impactx.MPI.OMP.DP" "/home/axel/src/impactx/examples/fodo/input_fodo.in"
3: Environment variables: 
3:  OMP_NUM_THREADS=1
3: Test timeout computed to be: 1500
3: MPI initialized with 2 MPI processes
3: MPI initialized with thread support level 0
3: OMP initialized with 1 OMP threads
3: AMReX (22.04-9-g84a1f7d0715b) initialized
3: boxArray(0) (BoxArray maxbox(2)
3:        m_ref->m_hash_sig(0)
3:        ((0,0,0) (7,7,7) (0,0,0)) ((8,0,0) (15,7,7) (0,0,0)) )
3: 
3: Beam kinetic energy (MeV): 2000
3: Bunch charge (C): 0
3: Particle type: electron
3: Number of particles: 10000
3: Beam distribution type: waterbag
3: Static units
3: Initialized beam distribution parameters
3: # of particles: 10000
3: Initialized element list
3:  ++++ Starting step=0

I think we need to remove some hacks in main.cpp and make sure it uses multiple boxes (currently: 2?), in a follow-up.

@ax3l ax3l added the component: core Core ImpactX functionality label Apr 11, 2022
@ax3l ax3l requested a review from atmyers April 11, 2022 18:45
@ax3l ax3l added this to the First Release Version milestone Apr 11, 2022
@ax3l ax3l merged commit 88da054 into ECP-WarpX:development Apr 11, 2022
@ax3l ax3l deleted the topic-parallelParticleASCIIdiags branch April 11, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core Core ImpactX functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants