Home
last modified time | relevance | path

Searched refs:argDB (Results 1 – 25 of 114) sorted by relevance

12345

/petsc/config/BuildSystem/
H A Dargs.py6 def __init__(self, clArgs = None, argDB = None): argument
8 self.argDB = self.createArgDB(argDB)
31 self.argDB = self.createArgDB(None)
36 def setArgDB(self, argDB): argument
37 self._argDB = argDB
39 argDB = property(getArgDB, setArgDB, doc = 'The RDict argument database') variable in ArgumentProcessor
44 argDB = initDB
53 argDB = ArgumentProcessor.defaultDB
54 return argDB
56 def setupArguments(self, argDB): argument
[all …]
H A Dscript.py53 def __init__(self, clArgs = None, argDB = None, log = None): argument
55 logger.Logger.__init__(self, clArgs, argDB, log)
80 def setupArguments(self, argDB): argument
84 argDB = logger.Logger.setupArguments(self, argDB)
86 self.help = help.Help(argDB)
89 self.actions = help.Info(argDB)
93 return argDB
111 self.argDB.readonly = True
112 if self.argDB.target == ['default']:
115 sections = self.argDB.target
[all …]
H A Dlogger.py103 …def __init__(self, clArgs = None, argDB = None, log = None, out = defaultOut, debugLevel = None, d… argument
104 args.ArgumentProcessor.__init__(self, clArgs, argDB)
141 def setupArguments(self, argDB): argument
145 argDB = args.ArgumentProcessor.setupArguments(self, argDB)
146 argDB.setType('log', nargs.Arg(None, 'buildsystem.log', 'The filename for the log'))
147argDB.setType('logAppend', nargs.ArgBool(None, 0, 'The flag determining whether we backup or a…
148argDB.setType('debugLevel', nargs.ArgInt(None, 3, 'Integer 0 to 4, where a higher level means m…
149argDB.setType('debugSections', nargs.Arg(None, [], 'Message types to print, e.g. [compile,link,hg,…
150 argDB.setType('debugIndent', nargs.Arg(None, ' ', 'The string used for log indentation'))
151argDB.setType('scrollOutput', nargs.ArgBool(None, 0, 'Flag to allow output to scroll rather than …
[all …]
H A Dhelp.py9 def __init__(self, argDB = None): argument
11 logger.Logger.__init__(self, None, argDB)
76 def __init__(self, argDB): argument
78 Info.__init__(self, argDB)
83 return self.argDB.getType(self.getArgName(name)).help
108 self.argDB.setType(self.getArgName(name), argType, forceLocal = 1)
112 if not hasattr(self.argDB,'dlist'):
113 self.argDB.dlist = {}
115 self.argDB.dlist[name] = dlist
133 arg_type = self.argDB.getType(arg_name)
[all …]
/petsc/config/BuildSystem/config/compile/
H A DC.py12 def __init__(self, argDB): argument
13 config.compile.processor.Processor.__init__(self, argDB, 'CPP', 'CPPFLAGS', '.cpp', '.c')
19 def __init__(self, argDB, usePreprocessorFlags = True): argument
25 config.compile.processor.Processor.__init__(self, argDB, 'CC', 'CFLAGS', '.c', ext)
34 self.flagsName.extend(Preprocessor(argDB).flagsName)
54 def __init__(self, argDB): argument
55 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
56 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
57 …config.compile.processor.Processor.__init__(self, argDB, ['CC_LD', 'LD', self.compiler.name], ['LD…
68 def setArgDB(self, argDB): argument
[all …]
H A DCxx.py12 def __init__(self, argDB): argument
13 config.compile.processor.Processor.__init__(self, argDB, 'CXXPP', 'CXXPPFLAGS', '.cpp', '.cc')
20 def __init__(self, argDB, usePreprocessorFlags = True): argument
21 …config.compile.processor.Processor.__init__(self, argDB, 'CXX', ['CXXFLAGS', 'CXX_CXXFLAGS'], '.cc…
27 self.flagsName.extend(Preprocessor(argDB).flagsName)
47 def __init__(self, argDB): argument
48 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
49 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
50 …config.compile.processor.Processor.__init__(self, argDB, ['CXX_LD', 'LD', self.compiler.name], ['L…
62 def setArgDB(self, argDB): argument
[all …]
H A Dprocessor.py6 def __init__(self, argDB, name, flagsName, sourceExtension, targetExtension): argument
7 logger.Logger.__init__(self, None, argDB)
30 def setArgDB(self, argDB): argument
31 args.ArgumentProcessor.setArgDB(self, argDB)
33 if not self.configCompilers.argDB == argDB:
34 self.configCompilers.argDB = argDB
35 if not self.configCompilers.framework.argDB == argDB:
36 self.configCompilers.framework.argDB = argDB
38 if not self.configLibraries.argDB == argDB:
39 self.configLibraries.argDB = argDB
[all …]
H A DFC.py12 def __init__(self, argDB): argument
13 config.compile.processor.Processor.__init__(self, argDB, 'FPP', 'FPPFLAGS', '.FPP', '.F90')
20 def __init__(self, argDB, usePreprocessorFlags = True): argument
21 config.compile.processor.Processor.__init__(self, argDB, 'FC', 'FFLAGS', '.F90', '.o')
27 self.flagsName.extend(Preprocessor(argDB).flagsName)
36 def __init__(self, argDB): argument
37 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
38 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
39 …config.compile.processor.Processor.__init__(self, argDB, ['FC_LD', 'LD', self.compiler.name], ['LD…
51 def setArgDB(self, argDB): argument
[all …]
H A DCUDA.py13 def __init__(self, argDB): argument
14 config.compile.processor.Processor.__init__(self, argDB, 'CUDAPP', 'CUDAPPFLAGS', '.cpp', '.c')
21 def __init__(self, argDB, usePreprocessorFlags = True): argument
22 config.compile.processor.Processor.__init__(self, argDB, 'CUDAC', 'CUDAFLAGS', '.cu', '.o')
28 self.flagsName.extend(Preprocessor(argDB).flagsName)
48 def __init__(self, argDB): argument
49 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
50 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
51 …config.compile.processor.Processor.__init__(self, argDB, [self.compiler.name], ['CUDAC_LINKER_FLAG…
65 def __init__(self, argDB): argument
[all …]
H A DSYCL.py20 def __init__(self, argDB): argument
21 …config.compile.processor.Processor.__init__(self, argDB, 'SYCLPP', 'SYCLPPFLAGS', '.sycl.cxx', '.s…
28 def __init__(self, argDB, usePreprocessorFlags = True): argument
29 … config.compile.processor.Processor.__init__(self, argDB, 'SYCLC', 'SYCLFLAGS', '.sycl.cxx', '.o')
35 self.flagsName.extend(Preprocessor(argDB).flagsName)
61 def __init__(self, argDB): argument
62 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
63 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
64 config.compile.processor.Processor.__init__(self, argDB,
79 def __init__(self, argDB): argument
[all …]
H A DHC.py13 def __init__(self, argDB): argument
14 config.compile.processor.Processor.__init__(self, argDB, 'HCCPP', 'HCCPPFLAGS', '.cpp', '.c')
21 def __init__(self, argDB, usePreprocessorFlags = True): argument
22 config.compile.processor.Processor.__init__(self, argDB, 'HIPC', 'HIPFLAGS', '.hip.cxx', '.o')
28 self.flagsName.extend(Preprocessor(argDB).flagsName)
48 def __init__(self, argDB): argument
49 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
50 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
51 …config.compile.processor.Processor.__init__(self, argDB, [self.compiler.name], ['HCC_LINKER_FLAGS'…
65 def __init__(self, argDB): argument
[all …]
H A DHIP.py20 def __init__(self, argDB): argument
21 …config.compile.processor.Processor.__init__(self, argDB, 'HIPPP', 'HIPPPFLAGS', '.hip.cxx', '.hip.…
28 def __init__(self, argDB, usePreprocessorFlags = True): argument
29 config.compile.processor.Processor.__init__(self, argDB, 'HIPC', 'HIPFLAGS', '.hip.cxx', '.o')
35 self.flagsName.extend(Preprocessor(argDB).flagsName)
61 def __init__(self, argDB): argument
62 self.compiler = Compiler(argDB, usePreprocessorFlags = False)
63 … = config.libraries.Configure(config.framework.Framework(clArgs = '', argDB = argDB, tmpDir = os.g…
64 …config.compile.processor.Processor.__init__(self, argDB, [self.compiler.name], ['HIPC_LINKER_FLAGS…
78 def __init__(self, argDB): argument
[all …]
/petsc/config/PETSc/options/
H A Darch.py34 arch+= '-'+self.framework.argDB['with-clanguage'].lower().replace('+','x')
35 if self.framework.argDB['with-debugging']:
45 …if 'PETSC_ARCH' in self.framework.argDB and 'PETSC_ARCH' in os.environ and self.framework.argDB['P…
47 … or name of script: %s, ignoring environment: %s''' % (str(self.framework.argDB['PETSC_ARCH']), st…
48 os.environ['PETSC_ARCH'] = self.framework.argDB['PETSC_ARCH']
49 if 'with-petsc-arch' in self.framework.argDB:
50 self.arch = self.framework.argDB['with-petsc-arch']
52 elif 'PETSC_ARCH' in self.framework.argDB:
53 self.arch = self.framework.argDB['PETSC_ARCH']
128 if 'arch-hash' in self.argDB:
[all …]
H A DsharedLibraries.py13 … txt = ' Single library: %s\n' % ('yes' if self.framework.argDB['with-single-library'] else 'no')
35 if 'with-shared' in self.framework.argDB:
37 if 'with-dynamic' in self.framework.argDB or 'with-dynamic-loading' in self.framework.argDB:
39 …if self.framework.argDB['with-shared-libraries'] and not self.framework.argDB['with-pic'] and 'wit…
44 …if self.framework.argDB['with-shared-libraries'] and not self.framework.argDB['with-pic']: self.fr…
54 …self.useShared = self.framework.argDB['with-shared-libraries'] and not self.setCompilers.staticLib…
106 if self.framework.argDB['with-serialize-functions'] and self.setCompilers.dynamicLibraries:
/petsc/config/BuildSystem/config/packages/
H A Dsowing.py39 if 'download-sowing-cc' in self.argDB and self.argDB['download-sowing-cc']:
40 args.append('CC="'+self.argDB['download-sowing-cc']+'"')
41 if 'download-sowing-cxx' in self.argDB and self.argDB['download-sowing-cxx']:
42 args.append('CXX="'+self.argDB['download-sowing-cxx']+'"')
43 if 'download-sowing-cpp' in self.argDB and self.argDB['download-sowing-cpp']:
44 args.append('CPP="'+self.argDB['download-sowing-cpp']+'"')
45 if 'download-sowing-cxxpp' in self.argDB and self.argDB['download-sowing-cxxpp']:
46 args.append('CXXPP="'+self.argDB['download-sowing-cxxpp']+'"')
58 if 'with-sowing-dir' in self.framework.clArgDB and self.argDB['with-sowing-dir']:
59 installDir = os.path.join(self.argDB['with-sowing-dir'],'bin')
[all …]
H A DSLEPc.py40 if 'download-slepc' in self.argDB and self.argDB['download-slepc']:
41 …if 'download-slepc-configure-arguments' in self.argDB and '--with-slepc4py' in self.argDB['downloa…
43 if self.argDB['with-petsc4py'] and not self.argDB['with-slepc4py']:
50 if self.argDB['prefix'] and not 'package-prefix-hash' in self.argDB:
54 …R='+self.packageDir+' PETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETS…
55 …R='+self.packageDir+' PETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETS…
56 ….path.abspath(os.path.expanduser(self.argDB['prefix']))+' PETSC_DIR='+os.path.abspath(os.path.expa…
57 prefix = os.path.abspath(os.path.expanduser(self.argDB['prefix']))
65 …if 'download-slepc-configure-arguments' in self.argDB and self.argDB['download-slepc-configure-arg…
66 configargs = self.argDB['download-slepc-configure-arguments']
[all …]
H A Dc2html.py29 if 'download-c2html-cc' in self.argDB and self.argDB['download-c2html-cc']:
30 args.append('CC="'+self.argDB['download-c2html-cc']+'"')
35 if 'with-c2html-exec' in self.argDB:
36 self.log.write('Looking for specified C2html executable '+self.argDB['with-c2html-exec']+'\n')
37 self.getExecutable(self.argDB['with-c2html-exec'], getFullPath=1, resultName='c2html')
51 if self.argDB['download-c2html']:
55 …elif (not self.argDB['with-c2html'] == 0 and not self.argDB['with-c2html'] == 'no') or 'with-c2h…
H A DCMake.py37 if 'download-cmake-cc' in self.argDB and self.argDB['download-cmake-cc']:
38 args.append('CC="'+self.argDB['download-cmake-cc']+'"')
39 if 'download-cmake-cxx' in self.argDB and self.argDB['download-cmake-cxx']:
40 args.append('CXX="'+self.argDB['download-cmake-cxx']+'"')
55 if 'with-cmake-exec' in self.argDB:
56 self.log.write('Looking for specified CMake executable '+self.argDB['with-cmake-exec']+'\n')
57 …self.getExecutable(self.argDB['with-cmake-exec'], getFullPath=1, resultName='cmake', setMakeMacro=…
61 if 'with-ctest-exec' in self.argDB:
62 self.log.write('Looking for specified Ctest executable '+self.argDB['with-ctest-exec']+'\n')
63 …self.getExecutable(self.argDB['with-ctest-exec'], getFullPath=1, resultName='ctest', setMakeMacro=…
[all …]
H A DBison.py28 if 'download-bison-cc' in self.argDB and self.argDB['download-bison-cc']:
29 args.append('CC="'+self.argDB['download-bison-cc']+'"')
33 if 'with-bison-exec' in self.argDB:
34 self.log.write('Looking for specified Bison executable '+self.argDB['with-bison-exec']+'\n')
35 …self.getExecutable(self.argDB['with-bison-exec'], getFullPath=1, resultName='bison', setMakeMacro …
47 if self.argDB['download-bison']:
55 …elif (not self.argDB['with-bison'] == 0 and not self.argDB['with-bison'] == 'no') or 'with-bison-…
H A DBlasLapack.py131 self.suffix = self.argDB.get('with-blaslapack-suffix', '')
133 if 'known-blaslapack-mangling' in self.argDB:
134 mangling = self.argDB['known-blaslapack-mangling']
175 if 'with-blas-lib' in self.argDB and not 'with-lapack-lib' in self.argDB:
177 if not 'with-blas-lib' in self.argDB and 'with-lapack-lib' in self.argDB:
179 if 'with-blas-lib' in self.argDB and 'with-blaslapack-dir' in self.argDB:
181 if 'with-blaslapack-lib' in self.argDB and 'with-blaslapack-dir' in self.argDB:
185 if 'with-blaslapack-lib' in self.argDB:
186 if 'known-64-bit-blas-indices' in self.argDB:
187 if self.argDB['known-64-bit-blas-indices']:
[all …]
H A DAMReX.py67 if self.argDB['prefix'] and not 'package-prefix-hash' in self.argDB:
68 args.append('-DPETSC_DIR='+os.path.abspath(os.path.expanduser(self.argDB['prefix'])))
70 args.append('-DHYPRE_ROOT='+os.path.abspath(os.path.expanduser(self.argDB['prefix'])))
75 if self.argDB['prefix']:
76 args.append('-DHYPRE_ROOT='+os.path.abspath(os.path.expanduser(self.argDB['prefix'])))
89 if self.download and self.argDB['download-'+self.downloadname.lower()+'-cmake-arguments']:
90 args.append(self.argDB['download-'+self.downloadname.lower()+'-cmake-arguments'])
110 if self.argDB['prefix'] and not 'package-prefix-hash' in self.argDB:
111 self.directory = os.path.abspath(os.path.expanduser(self.argDB['prefix']))
112 …self.include_a = '-I'+os.path.join(os.path.abspath(os.path.expanduser(self.argDB['prefix'])),'incl…
[all …]
H A DMatlab.py31 if 'with-matlab-dir' in self.argDB:
32 yield self.argDB['with-matlab-dir']
33 …raise RuntimeError('You set a value for --with-matlab-dir, but '+self.argDB['with-matlab-dir']+' c…
53 if 'with-matlab-arch' in self.argDB:
54 interpreter = interpreter+' -'+self.argDB['with-matlab-arch']
76 if 'with-matlab-arch' in self.argDB:
77 self.matlab_arch = self.argDB['with-matlab-arch']
85 if 'with-matlab-arch' in self.argDB:
86 self.mex = self.mex+' -'+self.argDB['with-matlab-arch']
96 self.lib = self.argDB['with-matlab-engine-lib']
[all …]
H A Dmake.py48 if 'download-make-cc' in self.argDB and self.argDB['download-make-cc']:
49 args.append('CC="'+self.argDB['download-make-cc']+'"')
79 if self.argDB['download-make']:
84 if 'with-make-exec' in self.argDB:
85 self.log.write('Looking for user provided Make executable '+self.argDB['with-make-exec']+'\n')
86 yield self.argDB['with-make-exec']
87 …raise RuntimeError('Error! User provided with-make-exec is not GNU make: '+self.argDB['with-make-e…
89 if 'with-make-dir' in self.argDB:
90 d = self.argDB['with-make-dir']
222 if 'with-make-np' in self.argDB and self.argDB['with-make-np']:
[all …]
/petsc/config/BuildSystem/config/
H A DsetCompilers.py693 if ('with-cc' in self.argDB and self.argDB['with-cc'] != '0') or 'CC' in self.argDB:
695 if ('with-cxx' in self.argDB and self.argDB['with-cxx'] != '0') or 'CXX' in self.argDB:
697 if ('with-fc' in self.argDB and self.argDB['with-fc'] != '0') or 'FC' in self.argDB:
699 if self.argDB['download-mpich'] or self.argDB['download-openmpi']:
701 if 'with-mpi-include' in self.argDB and self.argDB['with-mpi-include']:
703 if 'with-mpi' in self.argDB and self.argDB['with-mpi'] and self.argDB['with-mpi-compilers']:
712 if flagsArg in self.argDB:
713argDB[flagsArg] + '". Are you sure you want to do this? Generally it is best to let PETSc ./config…
715 if flagsArg in self.argDB: setattr(self, flagsArg, self.argDB[flagsArg])
720 if flagsArg in self.argDB: setattr(self, flagsArg, self.argDB[flagsArg])
[all …]
H A DsourceControl.py24 if 'with-git' in self.argDB and self.argDB['with-git'] == '0':
26 self.getExecutable(self.argDB['with-git'], resultName = 'git', setMakeMacro = 0)
35 if 'with-hg' in self.argDB and self.argDB['with-hg'] == '0':
37 self.getExecutable(self.argDB['with-hg'], resultName = 'hg', setMakeMacro = 0)

12345