diff --git a/CMakeLists.txt b/CMakeLists.txt index d1f59f701..683683a6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -469,12 +469,16 @@ FILE(READ "${CMAKE_CURRENT_BINARY_DIR}/libpio.settings" LIBPIO_SETTINGS) MESSAGE(STATUS ${LIBPIO_SETTINGS}) +# Set RPATH for shared libraries +set(CMAKE_MACOSX_RPATH 1) +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + # Install libpio.settings file into same location # as the libraries. INSTALL(FILES "${PIO_BINARY_DIR}/libpio.settings" DESTINATION lib COMPONENT libraries) - + ##### # Create pio_meta.h include file. ##### diff --git a/src/clib/pio_internal.h b/src/clib/pio_internal.h index c360ae4e4..79cc48eb2 100644 --- a/src/clib/pio_internal.h +++ b/src/clib/pio_internal.h @@ -17,11 +17,13 @@ #include #include #include -#ifdef _NETCDF4 -#include +#ifdef PIO_HAS_PAR_FILTERS #include #include #endif +#ifdef _NETCDF4 +#include +#endif #ifdef _PNETCDF #include #endif diff --git a/tests/performance/pioperformance.F90 b/tests/performance/pioperformance.F90 index 39b197098..7f09919ed 100644 --- a/tests/performance/pioperformance.F90 +++ b/tests/performance/pioperformance.F90 @@ -151,7 +151,7 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, & integer(kind=PIO_Offset_kind) :: maplen, gmaplen integer :: ndims integer, pointer :: gdims(:) - character(len=20) :: fname + character(len=24) :: fname type(var_desc_t) :: vari(nvars), varr(nvars), vard(nvars) type(iosystem_desc_t) :: iosystem integer :: stride, n @@ -266,7 +266,7 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, & call pio_init(mype, comm, ntasks, 0, stride, PIO_REARR_SUBSET, iosystem) - write(fname, '(a,i1,a,i4.4,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',k,'.nc' + write(fname, '(a,i1,a,i6.6,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',iotype,'.nc' call PIO_set_hint(iosystem, "nc_var_align_size", "1") @@ -379,7 +379,7 @@ subroutine pioperformancetest(filename, piotypes, mype, npe_base, & ! Now the Read #ifdef DOREAD - write(fname, '(a,i1,a,i4.4,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',iotype,'.nc' + write(fname, '(a,i1,a,i6.6,a,i1,a)') 'pioperf.',rearr,'-',ntasks,'-',iotype,'.nc' ierr = PIO_OpenFile(iosystem, File, iotype, trim(fname), mode=PIO_NOWRITE); do nv=1,nvars