| /petsc/config/BuildSystem/config/ |
| H A D | package.py | 24 def __init__(self): argument 25 self.dir = 'UNKNOWN' 28 def __init__(self, framework): argument 29 config.base.Configure.__init__(self, framework) 30 self.headerPrefix = 'PETSC' 31 self.substPrefix = 'PETSC' 32 self.arch = None # The architecture identifier 33 self.externalPackagesDir = os.path.abspath('externalpackages') 36 self.found = 0 37 self.setNames() [all …]
|
| H A D | compilersFortran.py | 17 def __init__(self, framework): argument 18 config.base.Configure.__init__(self, framework) 19 self.headerPrefix = '' 20 self.substPrefix = '' 23 def setupDependencies(self, framework): argument 24 config.base.Configure.setupDependencies(self, framework) 25 self.setCompilers = framework.require('config.setCompilers', self) 26 self.compilerFlags = framework.require('config.compilerFlags', self) 27 self.libraries = framework.require('config.libraries', None) 28 self.compilers = framework.require('config.compilers', self) [all …]
|
| H A D | compilers.py | 17 def __init__(self, framework): argument 18 config.base.Configure.__init__(self, framework) 19 self.headerPrefix = '' 20 self.substPrefix = '' 21 self.fortranMangling = 'unchanged' 22 self.fmainlibs = [] 23 self.fincs = [] 24 …self.flibs = [] # libraries needed for linking using the C or C++ compiler Fortran sou… 25 …self.clibs = [] # libraries needed for linking using the C++ or Fortran compiler C sou… 26 …self.cxxlibs = [] # libraries needed for linking using the C or Fortran compiler C++ sou… [all …]
|
| H A D | types.py | 6 def __init__(self, framework): argument 7 config.base.Configure.__init__(self, framework) 8 self.headerPrefix = '' 9 self.substPrefix = '' 10 self.sizes = {} 11 self.c99_complex = 0 12 self.cxx_complex = 0 15 def setupHelp(self, help): argument 20 def setupDependencies(self, framework): argument 21 config.base.Configure.setupDependencies(self, framework) [all …]
|
| H A D | setCompilers.py | 41 def update(self,*args): argument 44 self[key] = val 46 def __setitem__(self,key,val): argument 48 raise RuntimeError('must use strings as keys for {cls}'.format(cls=self.__class__)) 50 super(defaultdict,self).__setitem__(key.lower(),val) 52 def __missing__(self,key): argument 54 raise RuntimeError('must use strings as keys for {cls}'.format(cls=self.__class__)) 56 if key not in self.keys(): 57 self[key] = self.default_factory() 58 return self[key] [all …]
|
| /petsc/config/PETSc/options/ |
| H A D | scalarTypes.py | 5 def __init__(self, framework): argument 6 config.base.Configure.__init__(self, framework) 7 self.headerPrefix = '' 8 self.substPrefix = '' 9 self.have__fp16 = 0 10 self.have__float128 = 0 13 def __str1__(self): argument 14 output = ' Scalar type: ' + self.scalartype + '\n' 15 output += ' Precision: ' + self.precision + '\n' 17 if self.have__fp16 and not self.precision == '__fp16': support.append('__fp16') [all …]
|
| H A D | sharedLibraries.py | 5 def __init__(self, framework): argument 6 config.base.Configure.__init__(self, framework) 7 self.headerPrefix = '' 8 self.substPrefix = '' 9 self.useShared = 0 12 def __str1__(self): argument 13 … txt = ' Single library: %s\n' % ('yes' if self.framework.argDB['with-single-library'] else 'no') 14 txt += ' Shared libraries: %s\n' % ('yes' if self.useShared else 'no') 17 def setupHelp(self, help): argument 23 def setupDependencies(self, framework): argument [all …]
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | MPI.py | 12 def __init__(self, framework): argument 13 config.package.Package.__init__(self, framework) 14 self.minversion = '2' 15 self.versionname = 'MPI_VERSION' 16 self.functions = ['MPI_Init', 'MPI_Comm_create'] 17 self.includes = ['mpi.h'] 44 …self.liblist = liblist_mpich + liblist_lam + liblist_msmpi + liblist_other + liblist_sing… 46 self.required = 1 47 self.isPOE = 0 48 self.usingMPIUni = 0 [all …]
|
| H A D | Firedrake.py | 5 def __init__(self, framework): argument 6 config.package.PythonPackage.__init__(self, framework) 7 self.pkgname = 'firedrake' 8 self.useddirectly = 0 9 self.linkedbypetsc = 0 10 self.builtafterpetsc = 1 11 self.PrefixWriteCheck = 0 13 def setupDependencies(self, framework): argument 14 config.package.PythonPackage.setupDependencies(self, framework) 15 self.python = framework.require('config.packages.Python',self) [all …]
|
| H A D | HIP.py | 8 def __init__(self, framework): argument 9 config.package.Package.__init__(self, framework) 11 self.minversion = '5.0.0' 13 self.versionname = 'ROCM_VERSION_MAJOR.ROCM_VERSION_MINOR.ROCM_VERSION_PATCH' 14 self.versioninclude = ['rocm-core/rocm_version.h', 'rocm_version.h'] 15 self.requiresversion = 1 16 self.functions = ['hipInit'] 17 self.includes = ['hip/hip_runtime.h'] 18 self.includedir = ['include'] 20 …self.liblist = [['libhipsparse.a','libhipblas.a','libhipsolver.a','librocsparse.a','libro… [all …]
|
| H A D | egads.py | 5 def __init__(self, framework): argument 6 config.package.GNUPackage.__init__(self, framework) 7 self.gitcommit = 'ee0890bb2ce96bdd878fc2b628602640027eaa85' 8 self.download = ['git://https://github.com/bldenton/EGADSlite.git'] 9 self.functions = ['EG_open'] 10 self.includes = ['egads.h'] 11 self.hastests = 1 12 self.buildLanguages = ['Cxx'] 13 self.hasegadslite = 1 14 self.hasegads = 1 [all …]
|
| H A D | FEniCS-DOLFINx.py | 5 def __init__(self, framework): argument 6 config.package.CMakePackage.__init__(self, framework) 7 self.version = '0.9.0.post1' 8 self.gitcommit = 'v'+self.version 9 self.download = ['git://https://github.com/FEniCS/dolfinx/'] 10 self.functions = [] 11 self.includes = ['dolfinx/common/dolfinx_common.h'] 12 self.liblist = [['libdolfinx.a']] 13 self.buildLanguages = ['Cxx'] 14 self.pkgname = 'dolfinx' [all …]
|
| H A D | STRUMPACK.py | 5 def __init__(self, framework): argument 6 config.package.CMakePackage.__init__(self, framework) 7 self.version = '8.0.0' 8 … self.versionname = 'STRUMPACK_VERSION_MAJOR.STRUMPACK_VERSION_MINOR.STRUMPACK_VERSION_PATCH' 9 self.versioninclude = 'StrumpackConfig.hpp' 10 self.gitcommit = 'v'+self.version 11 …self.download = ['git://https://github.com/pghysels/STRUMPACK','https://github.com/pghysel… 12 self.functionsCxx = [1,'STRUMPACK_init',''] 13 self.includes = ['StrumpackSparseSolver.h'] 14 self.liblist = [['libstrumpack.a']] [all …]
|
| H A D | kokkos.py | 7 def __init__(self, framework): argument 8 config.package.CMakePackage.__init__(self, framework) 9 self.gitcommit = '5.0.2' 10 self.minversion = '4.3.00' 11 self.versionname = 'KOKKOS_VERSION' 12 …self.download = ['git://https://github.com/kokkos/kokkos.git','https://github.com/kokkos/k… 13 self.downloaddirnames = ['kokkos'] 14 … self.excludedDirs = ['kokkos-kernels'] # Do not wrongly think kokkos-kernels as kokkos-vernum 15 self.includes = ['Kokkos_Macros.hpp'] 16 self.liblist = [['libkokkoscontainers.a','libkokkoscore.a','libkokkossimd.a'], [all …]
|
| H A D | MUMPS.py | 4 def __init__(self, framework): argument 5 config.package.Package.__init__(self, framework) 6 self.version = '5.8.2' 7 self.minversion = '5.2.1' 8 self.versionname = 'MUMPS_VERSION' 9 self.requiresversion = 1 10 self.gitcommit = 'v'+self.version 11 self.download = ['https://mumps-solver.org/MUMPS_'+self.version+'.tar.gz', 12 … 'https://web.cels.anl.gov/projects/petsc/download/externalpackages/MUMPS_'+self.version+'.tar.gz'] 13 self.downloaddirnames = ['petsc-pkg-mumps','MUMPS'] [all …]
|
| H A D | Trilinos.py | 5 def __init__(self, framework): argument 6 config.package.CMakePackage.__init__(self, framework) 7 …self.gitcommit = 'fab6197820' # xsdk-0.2.0 + superlu_dist-5.4.0, superlu_dist-6.0.1 fix oc… 9 …self.download = ['git://https://github.com/balay/trilinos','https://github.com/balay/trili… 10 self.downloaddirnames = ['trilinos'] 11 self.includes = ['Trilinos_version.h'] 12 self.functions = ['Zoltan_Create'] # one of the very few C routines in Trilinos 13 self.buildLanguages = ['Cxx'] 14 self.hastests = 1 15 self.requiresrpath = 1 [all …]
|
| H A D | hypre.py | 5 def __init__(self, framework): argument 6 config.package.GNUPackage.__init__(self, framework) 7 self.version = '3.1.0' 8 self.minversion = '2.14' 9 self.versionname = 'HYPRE_RELEASE_VERSION' 10 self.versioninclude = 'HYPRE_config.h' 11 self.requiresversion = 1 13 …self.gitcommit = 'b2a805ffd0e321e1d78882c62eade880dd6f3ae7' #v3.1.0 + fixes from https://git… 14 …self.download = ['git://https://github.com/hypre-space/hypre','https://github.com/hypre-spa… 15 self.functions = ['HYPRE_IJMatrixCreate'] [all …]
|
| H A D | CUDA.py | 5 def __init__(self, framework): argument 6 config.package.Package.__init__(self, framework) 7 self.minversion = '7.5' 8 self.versionname = 'CUDA_VERSION' 9 self.versioninclude = 'cuda.h' 10 self.requiresversion = 1 11 self.functions = ['cublasInit','cufftDestroy','nvmlInit_v2'] 12 …self.includes = ['cublas.h','cufft.h','cusparse.h','cusolverDn.h','curand.h','thrust/vers… 13 self.basicliblist = [['libcudart.a','libnvtx3interop.a'],['libcudart.a','libnvToolsExt.a']] 14 …self.mathliblist = [['libcufft.a', 'libcublas.a','libcusparse.a','libcusolver.a','libcurand.… [all …]
|
| H A D | h2opus.py | 4 def __init__(self, framework): argument 5 config.package.Package.__init__(self, framework) 6 self.gitcommit = 'c75d74cc96d728c11b7bf0f291ba71dc369a89f4' # Thu Apr 28, 2022 7 …self.download = ['git://https://github.com/ecrc/h2opus','https://github.com/ecrc/h2o… 8 self.precisions = ['single','double'] 9 self.skippackagewithoptions = 1 10 self.buildLanguages = ['Cxx'] 11 self.minCxxVersion = 'c++14' 12 self.liblist = [['libh2opus.a']] 13 self.includes = ['h2opusconf.h'] [all …]
|
| H A D | MPICH.py | 5 def __init__(self, framework): argument 6 config.package.GNUPackage.__init__(self, framework) 7 self.version = '5.0.0' 8 …self.download = ['https://github.com/pmodels/mpich/releases/download/v'+self.version+'/mpi… 9 …'https://www.mpich.org/static/downloads/'+self.version+'/mpich-'+self.version+'.tar.gz', # does no… 10 …ttps://web.cels.anl.gov/projects/petsc/download/externalpackages'+'/mpich-'+self.version+'.tar.gz'] 11 self.download_git = ['git://https://github.com/pmodels/mpich.git'] 12 self.versionname = 'MPICH_NUMVERSION' 13 self.includes = ['mpi.h'] 14 self.gitsubmodules = ['.'] [all …]
|
| /petsc/config/PETSc/ |
| H A D | Configure.py | 9 def __init__(self, framework): argument 10 config.base.Configure.__init__(self, framework) 11 self.headerPrefix = 'PETSC' 12 self.substPrefix = 'PETSC' 13 … self.installed = 0 # 1 indicates that Configure itself has already compiled and installed PETSc 14 self.found = 1 17 def __str2__(self): argument 20 desc = [' Using GNU make: ' + self.make.make] 21 if self.defines.get('USE_COVERAGE'): 24 ' Using code coverage executable: {}'.format(self.getMakeMacro('PETSC_COVERAGE_EXEC')) [all …]
|
| H A D | petsc.py | 34 def __init__(self, framework): argument 35 config.base.Configure.__init__(self, framework) 36 self.headerPrefix = '' 37 self.substPrefix = '' 38 self.location = None 39 self.trial = {} 40 self.working = {} 43 def __str__(self): argument 44 if self.found: 46 desc.append(' Type: '+self.name) [all …]
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | missing.py | 5 def __init__(self, framework): argument 6 config.base.Configure.__init__(self, framework) 7 self.headerPrefix = '' 8 self.substPrefix = '' 11 def __str__(self): argument 14 def setupHelp(self, help): argument 18 def setupDependencies(self, framework): argument 19 config.base.Configure.setupDependencies(self, framework) 20 self.compilers = framework.require('config.compilers', self) 21 self.functions = framework.require('config.functions', self) [all …]
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_object.py | 14 def setUp(self): argument 15 self.obj = self.CLASS() 16 getattr(self.obj, self.FACTORY)(*self.TARGS, **self.KARGS) 17 if not self.obj: 18 self.obj.create() 20 def tearDown(self): argument 21 self.obj = None 24 def testTypeRegistry(self): argument 26 classid = self.obj.getClassId() 27 typeobj = self.CLASS [all …]
|
| H A D | test_pc_py.py | 11 def setup(self, pc): argument 14 def reset(self, pc): argument 17 def apply(self, pc, x, y): argument 20 def applyT(self, pc, x, y): argument 21 self.apply(pc, x, y) 23 def applyS(self, pc, x, y): argument 24 self.apply(pc, x, y) 26 def applySL(self, pc, x, y): argument 27 self.applyS(pc, x, y) 29 def applySR(self, pc, x, y): argument [all …]
|