Skip to content

Commit a844617

Browse files
authored
Merge pull request #1997 from briandobbins/qsort_comparator_64bit_fix
Fixes in issue in the qsort comparison function
2 parents 09dcc06 + a89f820 commit a844617

9 files changed

Lines changed: 37 additions & 241 deletions

File tree

.github/actions/buildhdf5/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ runs:
5050
-DHDF5_ENABLE_PARALLEL=${{ inputs.enable_parallel }} \
5151
-DHDF5_ENABLE_Z_LIB_SUPPORT=ON \
5252
-DBUILD_TESTING=${{ inputs.enable_testing }} \
53+
-DHDF5_ENABLE_DEPRICATED_SYMBOLS=OFF \
54+
-DHDF5_BUILD_EXAMPLES=OFF \
5355
-DHDF5_BUILD_TOOLS=OFF \
56+
-DCMAKE_BUILD_TYPE=REL \
5457
../
5558
make
5659
make install

.github/actions/intelcompilers/action.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@ description: 'Install Intel Compilers'
22
runs:
33
using: composite
44
steps:
5-
- uses: actions/checkout@v3
5+
- uses: actions/checkout@v4
66
- name: setup repo
77
shell: bash
88
run: |
9-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
10-
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
11-
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
12-
sudo echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
9+
#wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
10+
# download the key to system keyring
11+
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
12+
#sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
13+
#rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
14+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
1315
sudo apt-get update
1416
- name: install
1517
shell: bash
1618
run: |
17-
sudo apt-get install -y intel-oneapi-common-vars
18-
sudo apt-get install -y intel-oneapi-compiler-fortran
19-
sudo apt-get install -y intel-oneapi-mkl
20-
sudo apt-get install -y intel-oneapi-mpi
21-
sudo apt-get install -y intel-oneapi-mpi-devel
19+
sudo apt-get install intel-oneapi-hpc-toolkit
2220
source /opt/intel/oneapi/setvars.sh
23-
printenv >> $GITHUB_ENV
21+
source /opt/intel/oneapi/compiler/latest/env/vars.sh intel64

.github/workflows/autotools.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
LDFLAGS: "-L/usr/lib/x86_64-linux-gnu -lnetcdf_mpi -lpnetcdf"
2020
FCFLAGS: "-Wall -Werror -fallow-argument-mismatch -Wno-conversion"
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Installs
2424
run: |
2525
set -x
@@ -54,4 +54,4 @@ jobs:
5454
5555
# - name: Setup tmate session
5656
# if: ${{ failure() }}
57-
# uses: mxschmitt/action-tmate@v3
57+
# uses: mxschmitt/action-tmate@v4

.github/workflows/intel.yml

Lines changed: 0 additions & 131 deletions
This file was deleted.

.github/workflows/withspack.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ include(CheckSymbolExists)
2929

3030
# Determine the configure date.
3131
IF(DEFINED ENV{SOURCE_DATE_EPOCH})
32-
EXECUTE_PROCESS(
33-
COMMAND "date" "-u" "-d" "@$ENV{SOURCE_DATE_EPOCH}"
34-
OUTPUT_VARIABLE CONFIG_DATE
35-
)
32+
EXECUTE_PROCESS(
33+
COMMAND "date" "-u" "-d" "@$ENV{SOURCE_DATE_EPOCH}"
34+
OUTPUT_VARIABLE CONFIG_DATE
35+
)
3636
ELSE()
37-
EXECUTE_PROCESS(
38-
COMMAND date
39-
OUTPUT_VARIABLE CONFIG_DATE
40-
)
37+
EXECUTE_PROCESS(
38+
COMMAND date
39+
OUTPUT_VARIABLE CONFIG_DATE
40+
)
4141
ENDIF()
4242
IF(CONFIG_DATE)
43-
string(STRIP ${CONFIG_DATE} CONFIG_DATE)
43+
string(STRIP ${CONFIG_DATE} CONFIG_DATE)
4444
ENDIF()
4545

4646
# A function used to create autotools-style 'yes/no' definitions.
@@ -363,9 +363,9 @@ if (HAVE_NETCDF_PAR)
363363
#if !NC_HAS_PAR_FILTERS
364364
choke me
365365
#endif
366-
int main() {return 0;}" HAVE_PAR_FILTERS)
366+
int main() {return 0;}" PIO_HAS_PAR_FILTERS)
367367
else()
368-
set(HAVE_PAR_FILTERS 0)
368+
set(PIO_HAS_PAR_FILTERS 0)
369369
endif()
370370

371371
###
@@ -486,7 +486,7 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
486486
INSTALL(FILES "${PIO_BINARY_DIR}/libpio.settings"
487487
DESTINATION lib
488488
COMPONENT libraries)
489-
489+
490490
#####
491491
# Create pio_meta.h include file.
492492
#####

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838
LD=ld # Required for MPE to work.
3939
LT_INIT
4040

41-
# Find and learn about install
41+
# Find and learn about install
4242
AC_PROG_INSTALL
4343

4444
# Find and learn about the C compiler.
@@ -294,7 +294,7 @@ AC_MSG_CHECKING([whether netCDF provides parallel filter support])
294294
AC_CHECK_LIB([netcdf], [nc_inq_filter_avail], [have_par_filters=yes], [have_par_filters=no])
295295
AC_MSG_RESULT([${have_par_filters}])
296296
if test "x$have_par_filters" = xyes ; then
297-
AC_DEFINE([HAVE_PAR_FILTERS], [1], [if true, netcdf-c supports filters with parallel I/O])
297+
AC_DEFINE([PIO_HAS_PAR_FILTERS], [1], [if true, netcdf-c supports filters with parallel I/O])
298298
fi
299299

300300
# Is this version 4.7.2, which does not work?
@@ -472,8 +472,8 @@ AC_CONFIG_HEADERS([config.h])
472472

473473
# Create the makefiles.
474474
AC_CONFIG_FILES(Makefile
475-
src/Makefile
476-
src/clib/Makefile
475+
src/Makefile
476+
src/clib/Makefile
477477
src/ncint/Makefile
478478
src/flib/Makefile
479479
src/gptl/Makefile

src/clib/pio_rearrange.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,10 @@ compare_offsets(const void *a, const void *b)
18161816
mapsort *y = (mapsort *)b;
18171817
if (!x || !y)
18181818
return 0;
1819-
return (int)(x->iomap - y->iomap);
1819+
1820+
if (x->iomap < y->iomap) { return -1; }
1821+
if (x->iomap > y->iomap) { return 1; }
1822+
return 0;
18201823
}
18211824

18221825
/**

src/flib/pio_nf.F90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,19 +400,19 @@ module pio_nf
400400
#ifdef NC_HAS_QUANTIZE
401401
interface pio_def_var_quantize
402402
module procedure &
403-
def_var_quantize_desc , &
403+
def_var_quantize_desc, &
404404
def_var_quantize_id
405405
end interface pio_def_var_quantize
406406
interface pio_inq_var_quantize
407407
module procedure &
408-
inq_var_quantize_desc , &
408+
inq_var_quantize_desc, &
409409
inq_var_quantize_id
410410
end interface pio_inq_var_quantize
411411
#endif
412412
#ifdef PIO_HAS_PAR_FILTERS
413413
interface pio_inq_var_filter_ids
414414
module procedure &
415-
inq_var_filter_ids_desc , &
415+
inq_var_filter_ids_desc , &
416416
inq_var_filter_ids_id
417417
end interface pio_inq_var_filter_ids
418418
interface pio_inq_var_filter_info

0 commit comments

Comments
 (0)