Skip to content

Commit c055370

Browse files
authored
Merge branch 'main' into issue-1153-additional-vader-workers
2 parents 01caadb + 36bcd52 commit c055370

84 files changed

Lines changed: 1301 additions & 2398 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Bug report
33
about: Create a report to help us improve
44
title: ''
5-
labels: bug
5+
labels: 'kind: bug'
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest a feature or improvement for AMUSE
44
title: ''
5-
labels: feature request
5+
labels: 'kind: feature request'
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Question
33
about: Ask an AMUSE-related question
44
title: ''
5-
labels: question
5+
labels: 'kind: question'
66
assignees: ''
77

88
---

.github/stale.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ daysUntilStale: 365
44
daysUntilClose: 365
55
# Issues with these labels will never be considered stale
66
exemptLabels:
7-
- pinned
8-
- security
9-
- feature request
10-
- keep-open
11-
- bug
7+
- 'status: pinned'
8+
- 'kind: security'
9+
- 'kind: feature request'
10+
- 'status: keep-open'
11+
- 'kind: bug'
1212
# Label to use when marking an issue as stale
13-
staleLabel: stale
13+
staleLabel: 'status: stale'
1414
# Comment to post when marking an issue as stale. Set to `false` to disable
1515
markComment: >
1616
This issue has been automatically marked as stale because it has not had

.github/workflows/test-framework.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,15 @@ jobs:
3737
conda info
3838
conda list
3939
40-
- name: Install dependencies
40+
- name: Install dependencies (Linux)
41+
if: ${{ startsWith(matrix.os, 'ubuntu') }}
4142
run: |
42-
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
43+
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
4344
44-
# - name: Configure OpenMPI
45-
# run: |
46-
# mkdir -p "$HOME/.openmpi"
47-
# echo "rmaps_base_oversubscribe = true" >>"$HOME/.openmpi/mca-params.conf"
48-
# echo "mpi_yield_when_idle = true" >>"$HOME/.openmpi/mca-params.conf"
49-
# echo "btl_tcp_if_include = lo,eth0" >>"$HOME/.openmpi/mca-params.conf"
50-
# mkdir -p "$HOME/.prte"
51-
# echo "rmaps_default_mapping_policy = :oversubscribe" >>"$HOME/.prte/mca-params.conf"
52-
# echo "prte_if_include = lo,eth0" >>"$HOME/.prte/mca-params.conf"
45+
- name: Install dependencies (macOS)
46+
if: ${{ startsWith(matrix.os, 'macos') }}
47+
run: |
48+
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake mpich gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
5349
5450
- name: Checkout
5551
uses: actions/checkout@v4
@@ -62,15 +58,16 @@ jobs:
6258
./setup install amuse-framework
6359
6460
- name: Test framework
65-
# env:
66-
# OMPI_MCA_rmaps_base_oversubscribe: 1
67-
# PRTE_MCA_rmaps_base_oversubscribe: 1
68-
# PRTE_MCA_rmaps_default_mapping_policy: ":oversubscribe"
69-
# OMPI_MCA_mpi_yield_when_idle: 1
70-
# OMPI_MCA_btl_tcp_if_include: lo,eth0
71-
# PRTE_MCA_btl_tcp_if_include: lo,eth0
72-
# PRTE_MCA_if_include: lo,eth0
73-
# OMPI_MCA_pmix_server_max_wait: 10
61+
env:
62+
OMPI_MCA_rmaps_base_oversubscribe: 1
63+
PRTE_MCA_rmaps_base_oversubscribe: 1
64+
PRTE_MCA_rmaps_default_mapping_policy: ":oversubscribe"
65+
OMPI_MCA_mpi_yield_when_idle: 1
66+
PRTE_MCA_mpi_yield_when_idle: 1
67+
OMPI_MCA_btl_tcp_if_include: lo,eth0
68+
PRTE_MCA_btl_tcp_if_include: lo,eth0
69+
PRTE_MCA_if_include: lo,eth0
70+
OMPI_MCA_pmix_server_max_wait: 10
7471
run: |
7572
./setup test amuse-framework
7673

.github/workflows/test-seba.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
4242
- name: Install dependencies
4343
run: |
44-
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
44+
conda install c-compiler cxx-compiler fortran-compiler 'gfortran<14' python-gil pkgconfig coreutils patch curl tar unzip gzip bzip2 xz perl bison make cmake openmpi gsl fftw gmp mpfr hdf5 netcdf4 libopenblas liblapack zlib pip wheel 'docutils>=0.6' 'mpi4py>=1.1.0' 'numpy>=1.2.2' 'h5py>=1.1.0' pytest
4545
4646
# - name: Configure OpenMPI
4747
# run: |

examples/textbook/relax_gas_and_stars.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import numpy
22
import pickle
3-
from amuse.lab import *
3+
4+
from amuse.lab import (
5+
units, nbody_system,
6+
new_plummer_model, write_set_to_file,
7+
new_salpeter_mass_distribution,
8+
)
49
from amuse.community.fastkick.interface import FastKick
5-
from amuse.ext.relax_sph import relax
10+
from amuse.community.fi.interface import Fi
11+
from amuse.ext.relax_sph import relax, monitor_energy
612
from amuse.ext.spherical_model import new_gas_plummer_distribution
713
from amuse.community.fractalcluster.interface import new_fractal_cluster_model
814

15+
16+
from prepare_figure import *
17+
918
###BOOKLISTSTART1###
1019
def check_energy_conservation(system, i_step, time, n_steps):
1120
unit = units.J
@@ -163,7 +172,6 @@ def make_map(sph,N=100,L=1):
163172
def plot_hydro_and_stars(hydro, stars):
164173
x_label = "x [pc]"
165174
y_label = "y [pc]"
166-
from prepare_figure import *
167175
fig = single_frame(x_label, y_label, logx=False, logy=False,
168176
xsize=12, ysize=12)
169177

lib/sapporo_light/dev_evaluate_gravity.cu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ __device__ void body_body_interaction(float &ds_min,
7373

7474
}
7575

76-
float inv_ds = rsqrt(ds2 + EPS2) * (__float_as_int(pos_i.w.y) != __float_as_int(pos_j.w.y));
76+
float inv_ds = 0.0f;
77+
if (__float_as_int(pos_i.w.y) != __float_as_int(pos_j.w.y)) {
78+
inv_ds = rsqrt(ds2 + EPS2);
79+
}
80+
7781
float mass = pos_j.w.x;
7882
float inv_ds2 = inv_ds*inv_ds; // 1 FLOP
7983
float inv_ds3 = mass * inv_ds*inv_ds2; // 2 FLOP

lib/sapporo_light/send_fetch_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void sapporo::free_cuda_memory(int ignore) {
2323
CUDA_SAFE_CALL(cudaFree( (void*)dev.ngb_list_i));
2424

2525

26-
CUDA_SAFE_CALL(cudaThreadExit());
26+
CUDA_SAFE_CALL(cudaDeviceReset());
2727
CUT_CHECK_ERROR("Failedn");
2828
}
2929

lib/sapporo_light/support/configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3934,11 +3934,11 @@ if test x$ac_prog_cxx_stdcxx = xno
39343934
then :
39353935
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
39363936
printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3937-
if test ${ac_cv_prog_cxx_11+y}
3937+
if test ${ac_cv_prog_cxx_cxx11+y}
39383938
then :
39393939
printf %s "(cached) " >&6
39403940
else $as_nop
3941-
ac_cv_prog_cxx_11=no
3941+
ac_cv_prog_cxx_cxx11=no
39423942
ac_save_CXX=$CXX
39433943
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39443944
/* end confdefs.h. */
@@ -3980,11 +3980,11 @@ if test x$ac_prog_cxx_stdcxx = xno
39803980
then :
39813981
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
39823982
printf %s "checking for $CXX option to enable C++98 features... " >&6; }
3983-
if test ${ac_cv_prog_cxx_98+y}
3983+
if test ${ac_cv_prog_cxx_cxx98+y}
39843984
then :
39853985
printf %s "(cached) " >&6
39863986
else $as_nop
3987-
ac_cv_prog_cxx_98=no
3987+
ac_cv_prog_cxx_cxx98=no
39883988
ac_save_CXX=$CXX
39893989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39903990
/* end confdefs.h. */

0 commit comments

Comments
 (0)