Add PETSc 3.10.1 to PETSc's spackage file (#9382)
* Add version 3.10.1 to the PETSc spackage file. * Makefile changes required for building PETSc native tests with the XL compiler.
This commit is contained in:
parent
3c713661b8
commit
2ac648407e
2 changed files with 20 additions and 0 deletions
|
@ -43,6 +43,7 @@ class Petsc(Package):
|
|||
version('develop', branch='master')
|
||||
version('xsdk-0.2.0', tag='xsdk-0.2.0')
|
||||
|
||||
version('3.10.1', '2d0d5a9bd8112a4147a2a23f7f62a906')
|
||||
version('3.10.0', '0240c2ce8c54e47b3531a743ee844d41')
|
||||
version('3.9.4', 'c98eb67573efb2f91c6f239368259e44')
|
||||
version('3.9.3', '7b71d705f66f9961cb0e2da3f9da79a1')
|
||||
|
|
19
var/spack/repos/builtin/packages/petsc/xlc-test-3.10.1.diff
Normal file
19
var/spack/repos/builtin/packages/petsc/xlc-test-3.10.1.diff
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- a/gmakefile.test
|
||||
+++ b/gmakefile.test
|
||||
@@ -127,11 +127,14 @@
|
||||
endif
|
||||
-@$(GFORTRAN_DEP_CLEANUP)
|
||||
|
||||
+#add xlf2003 flags
|
||||
+XLF2003FLAGS = "-qxlf2003=polymorphic:bozlitargs:stopexcept:volatile:autorealloc"
|
||||
+
|
||||
$(TESTDIR)/%.o : $(EXAMPLESDIR)/%.F90 | $$(@D)/.DIR
|
||||
ifeq ($(FC_MODULE_OUTPUT_FLAG),)
|
||||
$(call quiet,FCMOD) $(MODDIR) && $(FC) -c $(FC_FLAGS) $(FFLAGS) $(FCPPFLAGS) $(FC_DEPFLAGS) -I$(dir $<) $(abspath $<) -o $(abspath $@)
|
||||
else
|
||||
- $(PETSC_COMPILE.F) -I$(dir $<) $(abspath $<) -o $@ $(FC_MODULE_OUTPUT_FLAG)$(MODDIR) $(FC_MODULE_FLAG)$(MODDIR)
|
||||
+ $(PETSC_COMPILE.F) ${XLF2003FLAGS} -I$(dir $<) $(abspath $<) -o $@ $(FC_MODULE_OUTPUT_FLAG)$(MODDIR) $(FC_MODULE_FLAG)$(MODDIR)
|
||||
endif
|
||||
-@$(GFORTRAN_DEP_CLEANUP)
|
||||
|
||||
|
Loading…
Reference in a new issue