| /petsc/config/BuildSystem/ |
| H A D | logger.py | 99 '''This class creates a shared log and provides methods for writing to it''' 103 …def __init__(self, clArgs = None, argDB = None, log = None, out = defaultOut, debugLevel = None, d… argument 106 self.log = log 115 '''We do not want to pickle the default log stream''' 119 if 'log' in d: 120 if d['log'] is Logger.defaultLog: 121 del d['log'] 123 d['log'] = None 132 '''We must create the default log stream''' 134 if not 'log' in d: [all …]
|
| H A D | script.py | 53 def __init__(self, clArgs = None, argDB = None, log = None): argument 55 logger.Logger.__init__(self, clArgs, argDB, log) 123 '''This method outputs the action log''' 124 self.actions.output(self.log) 160 def runShellCommand(command, log=None, cwd=None, env=None): argument 161 return Script.runShellCommandSeq([command], log=log, cwd=cwd, env=env) 164 def runShellCommandSeq(commandseq, log=None, cwd=None, env=None): argument 172 if log: log.write('Executing: %s\n' % (command,)) 209 …def executeShellCommand(command, checkCommand = None, timeout = 600.0, log = None, lineLimit = 0, … argument 213 …teShellCommandSeq([command], checkCommand=checkCommand, timeout=timeout, log=log, lineLimit=lineLi… [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | example100.py | 13 def LOG(arg): function 22 LOG('Laplace1D.create()') 27 LOG('Laplace1D.destroy()') 30 LOG('Laplace1D.view()') 33 LOG('Laplace1D.setFromOptions()') 36 LOG('Laplace1D.setUp()') 39 LOG('Laplace1D.assemblyBegin()') 42 LOG('Laplace1D.assemblyEnd()') 45 LOG('Laplace1D.getDiagonal()') 51 LOG('Laplace1D.mult()') [all …]
|
| /petsc/include/petsc/private/ |
| H A D | logimpldeprecated.h | 9 /* SUBMANSEC = Log */ 17 …Performance data is now controlled by `PetscLogHandler`s. Only the default log handler (`PetscLog… 33 …Performance data is now controlled by `PetscLogHandler`s. Only the default log handler (`PetscLog… 50 …Performance data is now controlled by `PetscLogHandler`s. Only the default log handler (`PetscLog… 67 …Performance data is now controlled by `PetscLogHandler`s. Only the default log handler (`PetscLog… 169 …`PetscEventPerfInfo` is data obtained from the default log handler with `PetscLogEventGetPerfInfo(… 181 …`PetscEventPerfInfo` is data obtained from the default log handler with `PetscLogEventGetPerfInfo(… 197 …`PetscEventPerfInfo` is data obtained from the default log handler with `PetscLogEventGetPerfInfo(… 213 …Performance data is now controlled by `PetscLogHandler`s. Only the default log handler (`PetscLog… 231 …Performance data is now controlled by `PetscLogHandler`s. Only the default log handler (`PetscLog… [all …]
|
| /petsc/src/sys/logging/handler/interface/ |
| H A D | loghandler.c | 7 PetscLogHandlerCreate - Create a log handler for profiling events and stages. PETSc 73 …erSetState - Set the logging state that provides the stream of events and stages for a log handler. 102 …erGetState - Get the logging state that provides the stream of events and stages for a log handler. 115 …For a log handler started with `PetscLogHandlerStart()`, this will be the PETSc global logging sta… 129 PetscLogHandlerEventBegin - Record the beginning of an event in a log handler 157 PetscLogHandlerEventEnd - Record the end of an event in a log handler 223 PetscLogHandlerObjectCreate - Record the creation of an object in a log handler. 247 PetscLogHandlerObjectDestroy - Record the destruction of an object in a log handler. 271 PetscLogHandlerStagePush - Begin a new logging stage in a log handler. 298 PetscLogHandlerStagePop - End the current logging stage in a log handler. [all …]
|
| /petsc/config/PETSc/options/ |
| H A D | petscclone.py | 26 …sourceControl.git, 'describe', '--match=v*'],checkCommand = noCheck, log = self.log, cwd=self.pets… 27 …eShellCommand([self.sourceControl.git, 'log', '-1', '--pretty=format:%H'],checkCommand = noCheck, … 28 …eShellCommand([self.sourceControl.git, 'log', '-1', '--pretty=format:%ci'],checkCommand = noCheck,… 29 …ol.git, 'rev-parse', '--abbrev-ref', 'HEAD'],checkCommand = noCheck, log = self.log, cwd=self.pets… 30 …rceControl.git, 'status', '--short', '-uno'],checkCommand = noCheck, log = self.log, cwd=self.pets… 32 …self.logPrintWarning('Git branch check is giving errors! Check configure.log for output from "git …
|
| /petsc/config/BuildSystem/config/ |
| H A D | compilerOptions.py | 17 output = self.executeShellCommand(compiler + ' -show', log = self.log)[0] 26 …setCompilers.Configure.isGNU(compiler, self.log) or config.setCompilers.Configure.isClang(compiler… 29 if config.setCompilers.Configure.isClang(compiler, self.log): 32 if config.setCompilers.Configure.isDarwinCatalina(self.log): 36 if config.setCompilers.Configure.isGcc110plus(compiler, self.log): 38 if config.setCompilers.Configure.isARM(self.log): 41 …isDarwin(self.log) or config.setCompilers.Configure.isMINGW(compiler, self.log)) and config.setCom… 51 if config.setCompilers.Configure.isClang(compiler, self.log): 57 …if config.setCompilers.Configure.isIntel(compiler, self.log) and not re_win32fe_icl.search(compile… 95 elif config.setCompilers.Configure.isNVCC(compiler, self.log): [all …]
|
| H A D | setCompilers.py | 210 def isNAG(compiler, log): argument 213 …atus) = config.base.Configure.executeShellCommand(compiler+' -V',checkCommand = noCheck, log = log) 217 if log: log.write('Detected NAG Fortran compiler\n') 223 def isMINGW(compiler, log): argument 226 …atus) = config.base.Configure.executeShellCommand(compiler+' -v',checkCommand = noCheck, log = log) 229 if log: log.write('Detected MINGW compiler\n') 235 def isGNU(compiler, log): argument 238 …r, status) = config.base.Configure.executeShellCommand(compiler+' --help | head -n 20 ', log = log) 255 if not found and Configure.isCrayPEWrapper(compiler,log): 256 …utput, error, status) = config.base.Configure.executeShellCommand(compiler+' --version', log = log) [all …]
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_pc_py.py | 73 self.log = {} 76 self.log.setdefault(method, 0) 77 self.log[method] += 1 150 self.assertTrue(self._getCtx().log['create'] == 1) 151 self.assertTrue(self._getCtx().log['setFromOptions'] == 1) 164 self.assertTrue(ctx.log['destroy'] == 1) 192 if 'reset' not in self._getCtx().log: 193 self.assertTrue(self._getCtx().log['setUp'] == 1) 194 self.assertTrue(self._getCtx().log[meth] == 1) 196 nreset = self._getCtx().log['reset'] [all …]
|
| H A D | test_log.py | 19 # PETSc.Log.begin() 21 self.stage1 = PETSc.Log.Stage('Stage 1') 22 self.stage2 = PETSc.Log.Stage('Stage 2') 24 self.klassA = PETSc.Log.Class('Class A') 25 self.klassB = PETSc.Log.Class('Class B') 27 self.event1 = PETSc.Log.Event('Event 1') # no class 28 self.event2 = PETSc.Log.Event('Event 2') # no class 29 self.eventA = PETSc.Log.Event('Event A', self.klassA) 30 self.eventB = PETSc.Log.Event('Event B', self.klassB) 87 timed_func = PETSc.Log.EventDecorator()(lambda: None)
|
| /petsc/doc/community/ |
| H A D | mailing.md | 9 …issues generally require sending the files `configure.log` and `make.log`, i.e., uncompressed large 50 - Please do **not** put huge files like `configure.log` DIRECTLY into the email 62 - If the problem involves installation, send the entire `configure.log` and 63 `make.log` files as attachments. 65 - `configure.log` can be found either at `$PETSC_DIR/configure.log`, 66 `$PETSC_DIR/configure.log.bkp` (which holds the second-most recent 67 `configure.log`), or in 68 `$PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/configure.log[.bkp]`. 69 - `make.log` can be found in the same places as listed above, however note that 70 there is no `make.log.bkp` so be sure to not overwrite your `make.log` with [all …]
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | Triangle.py | 75 …g.setCompilers.Configure.isSolaris(self.log) and config.setCompilers.Configure.isGNU(self.getCompi… 122 … make libtriangle.'+self.setCompilers.AR_LIB_SUFFIX+' && make clean', timeout=2500, log = self.log) 126 …ge.executeShellCommand('mkdir -p '+os.path.join(self.installDir,'lib'), timeout=2500, log=self.log) 127 …xecuteShellCommand('mkdir -p '+os.path.join(self.installDir,'include'), timeout=2500, log=self.log) 128 …ge.executeShellCommand('mkdir -p '+os.path.join(self.installDir,'bin'), timeout=2500, log=self.log) 129 …lf.setCompilers.AR_LIB_SUFFIX)+' '+os.path.join(self.installDir,'lib'), timeout=60, log = self.log) 130 …-f '+os.path.join(self.packageDir, 'src', 'triangle.h')+' '+includeDir, timeout=60, log = self.log) 133 …gs+' -DNO_PETSC_MALLOC src/triangle.c -o triangle -lm && make clean', timeout=2500, log = self.log) 136 …in(self.packageDir,'triangle')+' '+os.path.join(self.installDir,'bin'), timeout=60, log = self.log)
|
| H A D | CMake.py | 41 if not config.setCompilers.Configure.isSolaris(self.log): 48 self.log.write('CMake build - adding make location to PATH: '+make_loc+'\n') 56 self.log.write('Looking for specified CMake executable '+self.argDB['with-cmake-exec']+'\n') 59 self.log.write('Looking for default CMake executable\n') 62 self.log.write('Looking for specified Ctest executable '+self.argDB['with-ctest-exec']+'\n') 65 self.log.write('Looking for default CTest executable\n') 75 self.log.write('Building CMake\n') 77 self.log.write('Looking for CMake in '+os.path.join(self.installDir,'bin')+'\n') 83 self.log.write('Not checking for CMake\n') 87 …error, status) = config.base.Configure.executeShellCommand(self.cmake+' --version', log = self.log) [all …]
|
| H A D | boost.py | 39 config.base.Configure.executeShellCommand(cmd, timeout=6000, log=self.log) 53 if config.setCompilers.Configure.isGNU(cxx, self.log): 56 …nfig.setCompilers.Configure.isOneAPI(cxx, self.log) or config.setCompilers.Configure.isIntel(cxx, … 59 elif config.setCompilers.Configure.isClang(cxx, self.log): 76 …ut, err, ret = config.base.Configure.executeShellCommand(bootstrap_cmd, timeout=6000, log=self.log) 79 … out, err, ret = config.base.Configure.executeShellCommand(build_cmd, timeout=6000, log=self.log) 82 … out, err, ret = config.base.Configure.executeShellCommand(install_cmd, timeout=6000, log=self.log)
|
| H A D | mpi4py.py | 37 if self.setCompilers.isDarwin(self.log): 44 if self.setCompilers.isDarwin(self.log): 45 if self.setCompilers.isARM(self.log): 55 …ncmd, cwd=self.packageDir, checkCommand=script.Script.passCheckCommand, timeout=100, log=self.log) 56 if ret: raise RuntimeError('Error cleaning mpi4py. Check configure.log') 63 if config.setCompilers.Configure.isIntel(self.getCompiler(), self.log): 66 …ildcmd, cwd=self.packageDir, checkCommand=script.Script.passCheckCommand,timeout=100, log=self.log) 67 if ret: raise RuntimeError('Error building mpi4py. Check configure.log') 71 …allcmd, cwd=self.packageDir,checkCommand=script.Script.passCheckCommand, timeout=100, log=self.log) 72 if ret: raise RuntimeError('Error installing mpi4py. Check configure.log')
|
| H A D | MAGMA.py | 183 if self.setCompilers.isDarwin(self.log): 189 ….package.Package.executeShellCommand('make clean', cwd=self.packageDir, timeout=60, log = self.log) 196 …elf.make.make_jnp + self.makerulename + codegen, cwd=self.packageDir, timeout=2500, log = self.log) 200 self.executeShellCommand('echo "!dummy mod" > '+dummymod,cwd=self.packageDir,log=self.log) 207 …teShellCommand(self.make.make + ' install_dirs', cwd=self.packageDir, timeout=2500, log = self.log) 208 …ecuteShellCommand(self.make.make + ' pkgconfig', cwd=self.packageDir, timeout=2500, log = self.log) 209 …lCommand('cp '+os.path.join(self.packageDir,'include','*.h')+' '+incDir, timeout=100, log=self.log) 210 …ommand('cp '+os.path.join(self.packageDir,'include','*.mod')+' '+incDir, timeout=100, log=self.log) 211 …mmand('cp '+os.path.join(self.packageDir,'lib','libmagma.*')+' '+libDir, timeout=100, log=self.log) 213 …executeShellCommand(self.make.make + ' install', cwd=self.packageDir, timeout=2500, log = self.log)
|
| H A D | pflotran.py | 63 …('cd '+self.packageDir+' && '+PARCH+' '+PDIR+' ./configure all '+PREFIX,timeout=60, log = self.log) 64 self.log.write(output+err) 67 …e.GNUPackage.executeShellCommand('cd '+self.packageDir+' && make all',timeout=1000, log = self.log) 68 self.log.write(output+err) 71 …NUPackage.executeShellCommand('cd '+self.packageDir+' && make install',timeout=100, log = self.log) 72 self.log.write(output+err)
|
| H A D | spai.py | 44 …ge.executeShellCommand('mkdir -p '+os.path.join(self.installDir,'lib'), timeout=2500, log=self.log) 45 …e && cp -f libspai.a '+os.path.join(self.installDir,'lib','libspai.a'),timeout=250, log = self.log) 46 …ageDir,'lib')+' && cp -f *.h '+os.path.join(self.installDir,'include'),timeout=250, log = self.log) 48 …Compilers.RANLIB+' '+os.path.join(self.installDir,'lib')+'/libspai.a', timeout=250, log = self.log) 60 self.log.write('Found dormqr() in Lapack library as needed by SPAI\n')
|
| H A D | KS.py | 64 …g.setCompilers.Configure.isSolaris(self.log) and config.setCompilers.Configure.isGNU(self.getCompi… 111 …ean && make libks.'+self.setCompilers.AR_LIB_SUFFIX+' && make clean', timeout=2500, log = self.log) 115 …ge.executeShellCommand('mkdir -p '+os.path.join(self.installDir,'lib'), timeout=2500, log=self.log) 116 …xecuteShellCommand('mkdir -p '+os.path.join(self.installDir,'include'), timeout=2500, log=self.log) 117 …lf.setCompilers.AR_LIB_SUFFIX)+' '+os.path.join(self.installDir,'lib'), timeout=60, log = self.log) 118 …join(self.packageDir, 'src', 'KolmogorovSmirnovDist.h')+' '+includeDir, timeout=60, log = self.log)
|
| H A D | libflame.py | 51 …d(os.path.join('.',self.configureName)+' '+args, cwd=self.packageDir, timeout=2000, log = self.log) 55 with open(os.path.join(self.packageDir,'config.log')) as fd: 58 self.logPrint('Output in config.log for ' + self.PACKAGE+': '+conf) 78 …gure.executeShellCommand(self.make.make+' clean', cwd=self.packageDir, timeout=200, log = self.log) 79 ….Configure.executeShellCommand(pmake+' V=1 all', cwd=self.packageDir, timeout=6000, log = self.log) 81 …e.executeShellCommand(self.make.make+' install', cwd=self.packageDir, timeout=1000, log = self.log)
|
| H A D | hpl.py | 73 …ean && make libhpl.'+self.setCompilers.AR_LIB_SUFFIX+' && make clean', timeout=250, log = self.log) 77 …kage.executeShellCommand('mkdir -p '+os.path.join(self.installDir,'lib'), timeout=25, log=self.log) 78 ….executeShellCommand('mkdir -p '+os.path.join(self.installDir,'include'), timeout=25, log=self.log) 79 …lf.setCompilers.AR_LIB_SUFFIX)+' '+os.path.join(self.installDir,'lib'), timeout=60, log = self.log) 80 …cp -f '+os.path.join(self.packageDir, 'include', '*.h')+' '+includeDir, timeout=60, log = self.log)
|
| H A D | Python.py | 41 …lf.pyexe,'-c','import sysconfig;print(sysconfig.get_python_version())'],timeout=60, log = self.log) 46 …and([self.pyexe,'-c','import setuptools;print(setuptools.__version__)'],timeout=60, log = self.log) 52 …hellCommand([self.pyexe,'-c','import cython;print(cython.__version__)'],timeout=60, log = self.log) 62 …g.package.Package.executeShellCommand(self.pyexe + ' -c "import numpy"',timeout=60, log = self.log)
|
| /petsc/src/sys/tests/output/ |
| H A D | ex72_0.out | 1 …> PetscLogHandlerNestedEventEnd(): Log event Event-2 wasn't ended, ending it to maintain stack pro… 2 …> PetscLogHandlerNestedEventEnd(): Log event Event-1 wasn't ended, ending it to maintain stack pro… 3 …> PetscLogHandlerNestedEventEnd(): Log event Event-2 wasn't ended, ending it to maintain stack pro…
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | debuggers.py | 30 if config.setCompilers.Configure.isDarwin(self.log): 43 if config.setCompilers.Configure.isDarwin(self.log): 49 if config.setCompilers.Configure.isDarwin(self.log): 69 …) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -p '+str(pid), log = self.log) 79 …) = config.base.Configure.executeShellCommand(self.dbx+' -c conftest -a '+str(pid), log = self.log) 89 …= config.base.Configure.executeShellCommand(self.dbx+' -c conftest -pid '+str(pid), log = self.log)
|
| /petsc/src/sys/tests/ |
| H A D | ex30.c | 177 temporaries: Log.0 178 filter: cat Log.0 | grep "\\(Actions accomplished\\|Objects created\\|Name\\|Info\\)" 226 args: -log_trace trace.log 227 temporaries: trace.log 228 filter: cat trace.log.0 241 temporaries: default.log flamegraph.log 242 args: -log_view :default.log,:flamegraph.log:ascii_flamegraph 249 temporaries: default.log flamegraph.log 250 args: -log_view :flamegraph.log:ascii_flamegraph,:default.log
|