From ebc6475dddf1fbe479d355a635caa57851b305fc0162355d63b3044b479a0231 Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 9 Jan 2018 10:23:55 +0000 Subject: [PATCH] Accepting request 562255 from home:eeich:branches:fix-compilers-hpc - Switch from gcc6 to gcc7 as additional compiler flavor for HPC on SLES. - Add support for mpich and openmpi3 for HPC. OBS-URL: https://build.opensuse.org/request/show/562255 OBS-URL: https://build.opensuse.org/package/show/science/hdf5?expand=0&rev=59 --- _multibuild | 2 ++ hdf5.changes | 6 ++++++ hdf5.spec | 44 +++++++++++++++++++++++++++++++++++++------- 3 files changed, 45 insertions(+), 7 deletions(-) diff --git a/_multibuild b/_multibuild index 55c830f..df9e226 100644 --- a/_multibuild +++ b/_multibuild @@ -3,6 +3,8 @@ openmpi mvapich2 gnu-openmpi-hpc + gnu-openmpi3-hpc gnu-mvapich2-hpc + gnu-mpich-hpc gnu-hpc diff --git a/hdf5.changes b/hdf5.changes index d632635..eb60428 100644 --- a/hdf5.changes +++ b/hdf5.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 5 18:34:20 UTC 2018 - eich@suse.com + +- Switch from gcc6 to gcc7 as additional compiler flavor for HPC on SLES. +- Add support for mpich and openmpi3 for HPC. + ------------------------------------------------------------------- Thu Nov 9 15:02:35 UTC 2017 - normand@linux.vnet.ibm.com diff --git a/hdf5.spec b/hdf5.spec index 42f4905..c89cd14 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -1,7 +1,7 @@ # # spec file for package hdf5 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -72,28 +72,58 @@ ExclusiveArch: do_not_build %global mpi_flavor mvapich2 %endif -%if "%{flavor}" == "gnu6-hpc" +%if "%{flavor}" == "gnu-openmpi3-hpc" %bcond_without hpc %define compiler_family gnu -%define c_f_ver 6 +%undefine c_f_ver +%global mpi_flavor openmpi +%define mpi_vers 3 +%endif + +%if "%{flavor}" == "gnu-mpich-hpc" +%bcond_without hpc +%define compiler_family gnu +%undefine c_f_ver +%global mpi_flavor mpich +%endif + +%if "%{flavor}" == "gnu7-hpc" +%bcond_without hpc +%define compiler_family gnu +%define c_f_ver 7 %undefine mpi_flavor %endif -%if "%{flavor}" == "gnu6-openmpi-hpc" +%if "%{flavor}" == "gnu7-openmpi-hpc" %bcond_without hpc %define compiler_family gnu -%define c_f_ver 6 +%define c_f_ver 7 %global mpi_flavor openmpi %define mpi_vers 1 %endif -%if "%{flavor}" == "gnu6-mvapich2-hpc" +%if "%{flavor}" == "gnu7-mvapich2-hpc" %bcond_without hpc %define compiler_family gnu -%define c_f_ver 6 +%define c_f_ver 7 %global mpi_flavor mvapich2 %endif +%if "%{flavor}" == "gnu7-openmpi3-hpc" +%bcond_without hpc +%define compiler_family gnu +%define c_f_ver 7 +%global mpi_flavor openmpi +%define mpi_vers 3 +%endif + +%if "%{flavor}" == "gnu7-mpich-hpc" +%bcond_without hpc +%define compiler_family gnu +%define c_f_ver 7 +%global mpi_flavor mpich +%endif + # Disable until resource issue is resolved. %if "%mpi_flavor" == "openmpi" %define _do_check 0