Skip to content

Commit

Permalink
Merge pull request #47 from eschnett/eschnett/in-place
Browse files Browse the repository at this point in the history
Increase alignment of common blocks
  • Loading branch information
eschnett authored Sep 25, 2024
2 parents 1c64b87 + 8f7534d commit f356ebf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ env:

jobs:
shellcheck:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: shellcheck
run: shellcheck --exclude SC2086 bin/*
build:
strategy:
matrix:
os: [ubuntu-22.04, macos-12]
os: [ubuntu-24.04, macos-13, macos-14]
fortran: [fortran-off, fortran-on]
shared: [shared-off, shared-on]

Expand All @@ -41,12 +41,12 @@ jobs:
-DCMAKE_INSTALL_PREFIX=$HOME/mpitrampoline
;;
macOS)
# Use GCC-12 from Homebrew
# Use GCC-14 from Homebrew
cmake -B ${{github.workspace}}/build \
-DENABLE_FORTRAN=${fortran} \
-DCMAKE_C_COMPILER=gcc-12 \
-DCMAKE_CXX_COMPILER=g++-12 \
-DCMAKE_Fortran_COMPILER=gfortran-12 \
-DCMAKE_C_COMPILER=gcc-14 \
-DCMAKE_CXX_COMPILER=g++-14 \
-DCMAKE_Fortran_COMPILER=gfortran-14 \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DBUILD_SHARED_LIBS=${shared} \
-DCMAKE_INSTALL_PREFIX=$HOME/mpitrampoline
Expand Down
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors:
given-names: Erik
orcid: https://orcid.org/0000-0002-4518-9017
title: MPItrampoline
version: v5.4.0
version: v5.4.1
doi: 10.5281/zenodo.6174408
date-released: 2023-06-16
date-released: 2024-08-29
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.12...3.20)
project(
MPItrampoline VERSION 5.4.0
MPItrampoline VERSION 5.4.1
DESCRIPTION "MPI trampoline"
HOMEPAGE_URL "https://github.com/eschnett/MPItrampoline"
LANGUAGES NONE
Expand Down
18 changes: 9 additions & 9 deletions src/mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,21 +230,21 @@ int PMPI_Pcontrol(int level, ...) { return MPI_SUCCESS; }

// Sentinel values

char **mpiabi_argv_null_ptr_;
char ***mpiabi_argvs_null_ptr_;
char **mpiabi_argv_null_ptr_ __attribute__((__aligned__(64))) = 0;
char ***mpiabi_argvs_null_ptr_ __attribute__((__aligned__(64))) = 0;

MPI_Fint *mpiabi_bottom_ptr_;
MPI_Fint *mpiabi_bottom_ptr_ __attribute__((__aligned__(64))) = 0;

MPI_Fint *mpiabi_errcodes_ignore_ptr_;
MPI_Fint *mpiabi_errcodes_ignore_ptr_ __attribute__((__aligned__(64))) = 0;

MPI_Fint *mpiabi_in_place_ptr_;
MPI_Fint *mpiabi_in_place_ptr_ __attribute__((__aligned__(64))) = 0;

MPI_Fint *mpiabi_status_ignore_ptr_;
MPI_Fint *mpiabi_statuses_ignore_ptr_;
MPI_Fint *mpiabi_status_ignore_ptr_ __attribute__((__aligned__(64))) = 0;
MPI_Fint *mpiabi_statuses_ignore_ptr_ __attribute__((__aligned__(64))) = 0;

MPI_Fint *mpiabi_unweighted_ptr_;
MPI_Fint *mpiabi_unweighted_ptr_ __attribute__((__aligned__(64))) = 0;

MPI_Fint *mpiabi_weights_empty_ptr_;
MPI_Fint *mpiabi_weights_empty_ptr_ __attribute__((__aligned__(64))) = 0;

#include "mpi_defn_constants_fortran.h"
#include "mpi_defn_functions_fortran.h"
Expand Down

0 comments on commit f356ebf

Please sign in to comment.