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

spikes in hydro outputs #90

Open
xiaocanli opened this issue Jan 25, 2023 · 0 comments
Open

spikes in hydro outputs #90

xiaocanli opened this issue Jan 25, 2023 · 0 comments

Comments

@xiaocanli
Copy link

hydro outputs have some problems. For example, viy shown below has spikes at the corners of the local domains.

The issue can be fixed by switching to the kokkos version of synchronize_hydro_array in src/vpic/dump.cc

hydro_array->copy_to_host();
synchronize_hydro_array( hydro_array );

to

synchronize_hydro_array_kokkos(hydro_array);
hydro_array->copy_to_host();

The test was done on Perlmutter@NERSC. It was a reconnection run with 4 GPU nodes (16 GPUs in total).
vpic-kokkos was configured using

CRAYPE_LINK_TYPE=dynamic cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DENABLE_INTEGRATED_TESTS=ON \
  -DENABLE_UNIT_TESTS=ON \
  -DBUILD_INTERNAL_KOKKOS=ON \
  -DENABLE_KOKKOS_CUDA=ON \
  -DKokkos_ARCH_AMPERE80=ON \
  -DKokkos_ARCH_ZEN3=ON \
  -DKokkos_ENABLE_PTHREAD=OFF \
  -DKokkos_ENABLE_OPENMP=ON \
  -DCMAKE_CXX_COMPILER="CC" \
  -DCMAKE_CXX_FLAGS="-g -rdynamic"\
  $src_dir
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