forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into set_periodic_PEC_corner_guards
- Loading branch information
Showing
591 changed files
with
19,856 additions
and
12,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,89 @@ | ||
Checks: '-*, | ||
bugprone-argument-comment, | ||
bugprone-assert-side-effect, | ||
bugprone-bad-signal-to-kill-thread, | ||
bugprone-bool-pointer-implicit-conversion, | ||
bugprone-branch-clone, | ||
-bugprone-easily-swappable-parameters, | ||
cppcoreguidelines-avoid-goto, | ||
misc-const-correctness, | ||
Checks: ' | ||
-*, | ||
bugprone-*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-implicit-widening-of-multiplication-result, | ||
-bugprone-misplaced-widening-cast, | ||
-bugprone-unchecked-optional-access, | ||
cert-*, | ||
-cert-err58-cpp, | ||
cppcoreguidelines-*, | ||
-cppcoreguidelines-avoid-c-arrays, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-cppcoreguidelines-avoid-non-const-global-variables, | ||
-cppcoreguidelines-init-variables, | ||
-cppcoreguidelines-macro-usage, | ||
-cppcoreguidelines-no-malloc, | ||
-cppcoreguidelines-narrowing-conversions, | ||
-cppcoreguidelines-non-private-member-variables-in-classes, | ||
-cppcoreguidelines-owning-memory, | ||
-cppcoreguidelines-pro-*, | ||
google-build-explicit-make-pair, | ||
google-build-namespaces, | ||
google-global-names-in-headers, | ||
misc-*, | ||
-misc-no-recursion, | ||
-misc-non-private-member-variables-in-classes, | ||
modernize-avoid-bind, | ||
modernize-concat-nested-namespaces, | ||
modernize-deprecated-headers, | ||
modernize-deprecated-ios-base-aliases, | ||
modernize-loop-convert, | ||
modernize-make-shared, | ||
modernize-make-unique, | ||
modernize-pass-by-value, | ||
modernize-raw-string-literal, | ||
modernize-redundant-void-arg, | ||
modernize-replace-auto-ptr, | ||
modernize-replace-disallow-copy-and-assign-macro, | ||
modernize-replace-random-shuffle, | ||
modernize-shrink-to-fit, | ||
modernize-unary-static-assert, | ||
modernize-use-nullptr, | ||
-modernize-return-braced-init-list, | ||
mpi-*, | ||
performance-faster-string-find, | ||
performance-for-range-copy, | ||
readability-non-const-parameter | ||
performance-implicit-conversion-in-loop, | ||
performance-inefficient-algorithm, | ||
performance-inefficient-string-concatenation, | ||
performance-inefficient-vector-operation, | ||
performance-move-const-arg, | ||
performance-move-constructor-init, | ||
performance-no-automatic-move, | ||
performance-no-int-to-ptr, | ||
readability-avoid-const-params-in-decls, | ||
readability-const-return-type, | ||
readability-container-contains, | ||
readability-container-data-pointer, | ||
readability-container-size-empty, | ||
readability-non-const-parameter, | ||
readability-redundant-control-flow, | ||
readability-redundant-declaration, | ||
readability-redundant-function-ptr-dereference, | ||
readability-redundant-member-init, | ||
readability-redundant-preprocessor, | ||
readability-redundant-smartptr-get, | ||
readability-redundant-string-cstr, | ||
readability-redundant-string-init, | ||
readability-simplify-boolean-expr, | ||
readability-simplify-subscript-expr, | ||
readability-static-accessed-through-instance, | ||
readability-static-definition-in-anonymous-namespace, | ||
readability-string-compare, | ||
readability-suspicious-call-argument, | ||
readability-uniqueptr-delete-release, | ||
readability-use-anyofallof, | ||
-readability-uppercase-literal-suffix | ||
' | ||
|
||
CheckOptions: | ||
- key: bugprone-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion | ||
value: "false" | ||
- key: misc-definitions-in-headers.HeaderFileExtensions | ||
value: "H," | ||
- key: modernize-pass-by-value.ValuesOnly | ||
value: "true" | ||
|
||
|
||
HeaderFilterRegex: 'Source[a-z_A-Z0-9\/]+\.H$' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,12 @@ jobs: | |
# https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile | ||
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ | ||
build_nvcc: | ||
name: NVCC 11.0.3 SP | ||
name: NVCC 11.3 SP | ||
runs-on: ubuntu-20.04 | ||
if: github.event.pull_request.draft == false | ||
env: | ||
CXXFLAGS: "-Werror" | ||
CMAKE_GENERATOR: Ninja | ||
# setuptools/mp4py work-around, see | ||
# https://github.com/mpi4py/mpi4py/pull/159 | ||
# https://github.com/mpi4py/mpi4py/issues/157#issuecomment-1001022274 | ||
SETUPTOOLS_USE_DISTUTILS: stdlib | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
|
@@ -30,7 +26,7 @@ jobs: | |
python-version: '3.x' | ||
- name: install dependencies | ||
run: | | ||
.github/workflows/dependencies/nvcc11-0.sh | ||
.github/workflows/dependencies/nvcc11-3.sh | ||
- name: CCache Cache | ||
uses: actions/cache@v3 | ||
# - once stored under a key, they become immutable (even if local cache path content changes) | ||
|
@@ -65,7 +61,7 @@ jobs: | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DWarpX_COMPUTE=CUDA \ | ||
-DWarpX_EB=ON \ | ||
-DWarpX_LIB=ON \ | ||
-DWarpX_PYTHON=ON \ | ||
-DAMReX_CUDA_ARCH=6.0 \ | ||
-DWarpX_OPENPMD=ON \ | ||
-DWarpX_openpmd_internal=OFF \ | ||
|
@@ -75,9 +71,11 @@ jobs: | |
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON | ||
cmake --build build_sp -j 2 | ||
python3 -m pip install --upgrade pip setuptools wheel | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install --upgrade build packaging setuptools wheel | ||
export WARPX_MPI=ON | ||
PYWARPX_LIB_DIR=$PWD/build_sp/lib python3 -m pip wheel . | ||
export PYWARPX_LIB_DIR=$PWD/build_sp/lib/site-packages/pywarpx/ | ||
python3 -m pip wheel . | ||
python3 -m pip install *.whl | ||
# make sure legacy build system continues to build, i.e., that we don't forget | ||
|
@@ -110,20 +108,16 @@ jobs: | |
which nvcc || echo "nvcc not in PATH!" | ||
git clone https://github.com/AMReX-Codes/amrex.git ../amrex | ||
cd ../amrex && git checkout --detach 0236a3732cc8e399e01eacd0253a782da40ce1f7 && cd - | ||
cd ../amrex && git checkout --detach d36463103daed09a40cdea235041a6ab79ff280c && cd - | ||
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 2 | ||
build_nvhpc21-11-nvcc: | ||
name: [email protected] NVCC/NVC++ Release [tests] | ||
runs-on: ubuntu-20.04 | ||
if: github.event.pull_request.draft == false | ||
env: | ||
# For NVHPC, Ninja is slower than the default: | ||
#CMAKE_GENERATOR: Ninja | ||
# setuptools/mp4py work-around, see | ||
# https://github.com/mpi4py/mpi4py/pull/159 | ||
# https://github.com/mpi4py/mpi4py/issues/157#issuecomment-1001022274 | ||
SETUPTOOLS_USE_DISTUTILS: stdlib | ||
#env: | ||
# # For NVHPC, Ninja is slower than the default: | ||
# CMAKE_GENERATOR: Ninja | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Dependencies | ||
|
@@ -161,7 +155,7 @@ jobs: | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DWarpX_COMPUTE=CUDA \ | ||
-DWarpX_EB=ON \ | ||
-DWarpX_LIB=ON \ | ||
-DWarpX_PYTHON=ON \ | ||
-DAMReX_CUDA_ARCH=8.0 \ | ||
-DWarpX_OPENPMD=ON \ | ||
-DWarpX_PSATD=ON \ | ||
|
@@ -172,9 +166,11 @@ jobs: | |
# work-around for mpi4py 3.1.1 build system issue with using | ||
# a GNU-built Python executable with non-GNU Python modules | ||
# https://github.com/mpi4py/mpi4py/issues/114 | ||
export CFLAGS="-noswitcherror" | ||
#export CFLAGS="-noswitcherror" | ||
python3 -m pip install --upgrade pip setuptools wheel | ||
export WARPX_MPI=ON | ||
PYWARPX_LIB_DIR=$PWD/build/lib python3 -m pip wheel . | ||
python3 -m pip install *.whl | ||
#python3 -m pip install --upgrade pip | ||
#python3 -m pip install --upgrade build packaging setuptools wheel | ||
#export WARPX_MPI=ON | ||
#export PYWARPX_LIB_DIR=$PWD/build/lib/site-packages/pywarpx/ | ||
#python3 -m pip wheel . | ||
#python3 -m pip install *.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.