Skip to content

Commit

Permalink
Merge tag '1.3.0' into to_CY50
Browse files Browse the repository at this point in the history
1.3.0
  • Loading branch information
AlexandreMary committed Apr 22, 2024
2 parents 16bec1b + a786659 commit 2015614
Show file tree
Hide file tree
Showing 35 changed files with 515 additions and 363 deletions.
14 changes: 7 additions & 7 deletions .github/tools/install-intel-oneapi.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh
#!/usr/bin/env bash

KEY=GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
version=2023.2.0
KEY=GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
wget https://apt.repos.intel.com/intel-gpg-keys/$KEY
sudo apt-key add $KEY
rm $KEY
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
sudo apt-get install \
intel-oneapi-compiler-fortran \
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic \
intel-oneapi-mpi \
intel-oneapi-mpi-devel \
intel-oneapi-mkl
intel-oneapi-compiler-fortran-$version \
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-$version \
intel-oneapi-mpi-devel-2021.10.0 \
intel-oneapi-mkl-$version
2 changes: 2 additions & 0 deletions .github/tools/install-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ case "$os" in
openmpi)
brew ls --versions openmpi || brew install openmpi
echo "localhost slots=72" >> $(brew --prefix)/etc/openmpi-default-hostfile
echo "localhost slots=72" >> $(brew --prefix)/etc/prte-default-hostfile

# workaround for open-mpi/omp#7516
echo "setting the mca gds to hash..."
echo "gds = hash" >> $(brew --prefix)/etc/pmix-mca-params.conf
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- linux gnu-10
- linux clang-12
- linux nvhpc-21.9
- linux intel
- linux intel-classic
- macos

include:
Expand Down Expand Up @@ -73,9 +73,9 @@ jobs:
cmake_options: -DCMAKE_CXX_FLAGS=--diag_suppress177
caching: false

- name : linux intel
- name : linux intel-classic
os: ubuntu-20.04
compiler: intel-oneapi
compiler: intel-classic
compiler_cc: icc
compiler_cxx: icpc
compiler_fc: ifort
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
${FIAT_TOOLS}/install-intel-oneapi.sh
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
echo "CACHE_SUFFIX=$(icc -dumpversion)" >> $GITHUB_ENV
echo "CACHE_SUFFIX=$CC-$($CC -dumpversion)" >> $GITHUB_ENV
- name: Install MPI
shell: bash -eux {0}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.3.0
1 change: 1 addition & 0 deletions src/fiat/drhook/dr_hook_init.F90
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ SUBROUTINE DR_HOOK_ASSERT_MPI_INITIALIZED_()
CMPIRUN_DETECT(2) = 'ALPS_APP_PE' ! Cray PE
CMPIRUN_DETECT(3) = 'PMI_SIZE' ! Intel
CMPIRUN_DETECT(4) = 'SLURM_STEP_NUM_TASKS' ! Slurm
! When adding here, change NVARS parameter above

LMPI_REQUIRED = .FALSE.
DO IVAR=1,NVARS
Expand Down
5 changes: 0 additions & 5 deletions src/fiat/drhook/drhook.c
Original file line number Diff line number Diff line change
Expand Up @@ -4152,7 +4152,6 @@ c_drhook_print_(const int *ftnunitno,
int nprof = 0;
drhook_prof_t *prof = NULL;
drhook_prof_t *p;
double flop_tot = 0, instr_tot = 0;
double *flop = NULL, *instr = NULL;

if (!opt_wallprof && !opt_cpuprof) return; /* no profiling info available */
Expand Down Expand Up @@ -4332,12 +4331,8 @@ c_drhook_print_(const int *ftnunitno,
p = prof;
qsort(p, nprof, sizeof(*p), prof_pc_comp_desc);

flop_tot = 0;
instr_tot = 0;
max_overhead_pc = 0;
for (t=0; t<numthreads; t++) {
flop_tot += flop[t];
instr_tot += instr[t];
if (overhead) {
max_overhead_pc = MAX(max_overhead_pc,overhead[t]);
#ifdef DEBUG
Expand Down
Loading

0 comments on commit 2015614

Please sign in to comment.