| /petsc/config/BuildSystem/config/ |
| H A D | compilerOptions.py | 24 flags = [] 28 flags.extend(['-Wall', '-Wwrite-strings', '-Wno-unknown-pragmas']) 31 …flags.extend(['-Wconversion', '-Wno-sign-conversion', '-Wno-float-conversion', '-Wno-implicit-floa… 33 flags.extend(['-fno-stack-check']) 35 flags.extend(['-Wno-lto-type-mismatch']) 37 flags.extend(['-Wno-stringop-overflow']) 39 … flags.extend(['-mfp16-format=ieee']) # ARM for utilizing 16 bit storage of floating point 42 flags.extend(['-fstack-protector']) 44 flags.extend(['-fvisibility=hidden']) 46 flags.extend(['-x cuda']) [all …]
|
| H A D | compilerFlags.py | 62 def findOptFlags(self, flags): argument 63 if isinstance(flags, str): 64 flags = flags.split() 66 return [f for f in flags if f.startswith('-g') or f.startswith('-O') or f in {'-fast'}] 68 def hasOptFlags(self,flags): argument 69 return len(self.findOptFlags(flags)) > 0 112 flags = [self.argDB[self.getOptionalFlagsName(language)]] 116 flags = [] 119 flags = [] 122 flags = [self.argDB[flagsName+'+']] [all …]
|
| H A D | python.py | 78 flags = sysconfig.get_config_var('LIBS') 80 flags = sysconfig.get_config_var('LDFLAGS')+' '+flags 81 self.lib.extend(self.splitLibs(flags))
|
| H A D | package.py | 250 flags = '' 252 if self.setCompilers.checkCompilerFlag(flag): flags = flags+flag 254 if self.setCompilers.checkCompilerFlag(flag): flags = flags+flag 255 return flags 340 def removeWarningFlags(self,flags): argument 341 flags = self.rmArgs( 342 flags, 349 return ['-g' if f == '-g3' else f for f in flags] 351 def __remove_flag_pair(self, flags, flag_to_remove, pair_prefix): argument 367 if isinstance(flags, str): [all …]
|
| H A D | compilersFortran.py | 38 flags = getattr(self.setCompilers, name) 39 if not isinstance(flags, list): flags = [flags] 40 return ' '.join(flags)
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmevent.hpp | 21 template <DeviceType T, unsigned long flags> 22 …INTERNAL CUPMEventPool : impl::Interface<T>, public RegisterFinalizeable<CUPMEventPool<T, flags>> { 35 template <DeviceType T, unsigned long flags> 36 inline PetscErrorCode CUPMEventPool<T, flags>::finalize_() noexcept in finalize_() 46 template <DeviceType T, unsigned long flags> 47 inline PetscErrorCode CUPMEventPool<T, flags>::allocate(cupmEvent_t *event) noexcept in allocate() 53 PetscCallCUPM(cupmEventCreateWithFlags(event, (unsigned int)flags)); in allocate() 61 template <DeviceType T, unsigned long flags> 62 inline PetscErrorCode CUPMEventPool<T, flags>::deallocate(cupmEvent_t *in_event) noexcept in deallocate() 76 template <DeviceType T, unsigned long flags> [all …]
|
| H A D | cupmstream.hpp | 68 inline PetscErrorCode CUPMStream<T>::create(flag_type flags) noexcept in create() argument 76 …etscCheck(flags == current_flags, PETSC_COMM_SELF, PETSC_ERR_GPU, "Current flags %u != requested f… in create() 80 PetscCallCUPM(cupmStreamCreateWithFlags(&stream_, flags)); in create()
|
| /petsc/include/petsc/private/khash/ |
| H A D | khash.h | 201 khint32_t *flags; \ 222 kfree((void *)h->keys); kfree(h->flags); \ 229 if (h && h->flags) { \ 230 memset(h->flags, 0xaa, __ac_fsize(h->n_buckets) * sizeof(khint32_t)); \ 241 …while (!__ac_isempty(h->flags, i) && (__ac_isdel(h->flags, i) || !__hash_equal(h->keys[i], key))) … 245 return __ac_iseither(h->flags, i)? h->n_buckets : i; \ 274 if (__ac_iseither(h->flags, j) == 0) { \ 280 __ac_set_isdel_true(h->flags, j); \ 287 … if (i < h->n_buckets && __ac_iseither(h->flags, i) == 0) { /* kick out the existing element */ \ 290 __ac_set_isdel_true(h->flags, i); /* mark it as deleted in the old hash table */ \ [all …]
|
| /petsc/config/BuildSystem/config/compile/ |
| H A D | processor.py | 70 def pushRequiredFlags(self, flags): argument 71 self.requiredFlags.append(flags) 96 flags = ' '.join([getattr(self.configCompilers, name) for name in self.flagsName]) 98 flags = ' '.join([self.argDB[name] for name in self.flagsName]) 99 return flags 101 def setFlags(self, flags): argument 102 self._flags = flags 103 flags = property(getFlags, setFlags, doc = 'The flags for the executable') variable in Processor 129 cmd.append(self.flags)
|
| H A D | C.py | 83 flags = ' '.join([getattr(self.configCompilers, name) for name in flagsName]) 85 flags = ' '.join([self.argDB[name] for name in flagsName]) 86 return flags 88 …flags = property(getFlags, config.compile.processor.Processor.setFlags, doc = 'The flags for the e… variable in Linker 139 flags = [getattr(self.configCompilers, name) for name in flagsName] 141 flags = [self.argDB[name] for name in flagsName] 142 return ' '.join(flags) 144 …flags = property(getFlags, config.compile.processor.Processor.setFlags, doc = 'The flags for the e… variable in SharedLinker 176 …flags = property(getFlags, config.compile.processor.Processor.setFlags, doc = 'The flags for the s… variable in StaticLinker 235 flags = [getattr(self.configCompilers, name) for name in flagsName] [all …]
|
| H A D | Cxx.py | 77 flags = ' '.join([getattr(self.configCompilers, name) for name in flagsName]) 79 flags = ' '.join([self.argDB[name] for name in flagsName]) 80 return flags 82 …flags = property(getFlags, config.compile.processor.Processor.setFlags, doc = 'The flags for the e… variable in Linker 134 flags = [getattr(self.configCompilers, name) for name in flagsName] 136 flags = [self.argDB[name] for name in flagsName] 137 return ' '.join(flags) 139 …flags = property(getFlags, config.compile.processor.Processor.setFlags, doc = 'The flags for the e… variable in SharedLinker
|
| H A D | FC.py | 66 flags = ' '.join([getattr(self.configCompilers, name) for name in flagsName]) 68 flags = ' '.join([self.argDB[name] for name in flagsName]) 69 return flags 71 …flags = property(getFlags, config.compile.processor.Processor.setFlags, doc = 'The flags for the e… variable in Linker
|
| /petsc/src/mat/tests/ |
| H A D | ex142.c | 75 unsigned int flags = FFTW_ESTIMATE; /*or FFTW_MEASURE */ in main() local 82 fplan = fftw_plan_dft_r2c_1d(dim[0], (double *)x_array, (fftw_complex *)y_array, flags); in main() 83 bplan = fftw_plan_dft_c2r_1d(dim[0], (fftw_complex *)y_array, (double *)z_array, flags); in main() 86 … fplan = fftw_plan_dft_r2c_2d(dim[0], dim[1], (double *)x_array, (fftw_complex *)y_array, flags); in main() 87 … bplan = fftw_plan_dft_c2r_2d(dim[0], dim[1], (fftw_complex *)y_array, (double *)z_array, flags); in main() 90 … = fftw_plan_dft_r2c_3d(dim[0], dim[1], dim[2], (double *)x_array, (fftw_complex *)y_array, flags); in main() 91 … = fftw_plan_dft_c2r_3d(dim[0], dim[1], dim[2], (fftw_complex *)y_array, (double *)z_array, flags); in main() 94 fplan = fftw_plan_dft_r2c(DIM, (int *)dim, (double *)x_array, (fftw_complex *)y_array, flags); in main() 95 bplan = fftw_plan_dft_c2r(DIM, (int *)dim, (fftw_complex *)y_array, (double *)z_array, flags); in main()
|
| /petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/ |
| H A D | pybuffer.h | 38 int readonly, int flags) in PyPetscBuffer_FillInfo() argument 41 if (((flags & PyBUF_WRITABLE) == PyBUF_WRITABLE) && (readonly == 1)) { in PyPetscBuffer_FillInfo() 56 if ((flags & PyBUF_FORMAT) == PyBUF_FORMAT) { in PyPetscBuffer_FillInfo() 70 if ((flags & PyBUF_ND) == PyBUF_ND) { in PyPetscBuffer_FillInfo() 80 if ((flags & PyBUF_STRIDES) == PyBUF_STRIDES) { in PyPetscBuffer_FillInfo()
|
| /petsc/config/BuildSystem/config/packages/ |
| H A D | SYCL.py | 77 flags = '-fsycl' 82 flags += ' -fsycl-targets=spir64_x86_64 ' 94 flags += ' -fsycl-targets=spir64_gen' 101 …setattr(self.setCompilers, ppFlagName, oldFlags+' '+flags) # -fsycl is needed for icpx to preproce… 102 self.setCompilers.addLinkerFlag(flags+' '+ldflags) # -fsycl is also needed by linker
|
| /petsc/lib/petsc/bin/win32fe/ |
| H A D | win32fe_lib | 8 flags=`echo $* | sed -e s'?qc ? -a ?g'` 9 ${p}/win32fe lib ${flags}
|
| /petsc/config/PETSc/options/ |
| H A D | indexTypes.py | 31 flags = self.getCompilerFlags() 34 if '-integer-size 64' in flags or '-fdefault-integer-8' in flags:
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_section.py | 32 def __diagnostic_prefix__(cls, *flags): argument 33 return DiagnosticManager.flag_prefix(super())('', *flags) 235 for flag_path in (Path(flag[2:]) for flag in linter.flags if flag.startswith('-I')): 411 def __diagnostic_prefix__(cls, *flags): argument 412 return DiagnosticManager.flag_prefix(super())('func', *flags) 857 def __diagnostic_prefix__(cls, *flags): argument 858 return DiagnosticManager.flag_prefix(super())('option-keys', *flags) 908 def __diagnostic_prefix__(cls, *flags): argument 909 return DiagnosticManager.flag_prefix(super())('notes', *flags) 930 def __diagnostic_prefix__(cls, *flags): argument [all …]
|
| H A D | _doc_section_base.py | 167 def __diagnostic_prefix__(cls, *flags: str) -> collections.deque[str]: 168 return cls.diagnostic_flag('-'.join(flags)) 705 def __diagnostic_prefix__(cls, *flags): argument 706 return DiagnosticManager.flag_prefix(super())('synopsis', *flags) 846 def __diagnostic_prefix__(cls, *flags): argument 847 return DiagnosticManager.flag_prefix(super())('param-list', *flags) 1025 def __diagnostic_prefix__(cls, *flags): argument 1026 return DiagnosticManager.flag_prefix(super())('prose', *flags) 1130 def __diagnostic_prefix__(cls, *flags): argument 1131 return DiagnosticManager.flag_prefix(super())('inline-list', *flags)
|
| /petsc/lib/petsc/conf/ |
| H A D | variables | 3 # This turns off any environmental variables for flags to not be used during the build process. 51 # PETSC_[C,F]CPPFLAGS - preprocessor flags for *.c, *.F preprocessing 67 # [C,F]CPPFLAGS - preprocessor flags for *.c, *.F preprocessing 80 # flags to CXXCPPFLAGS via CXXPPFLAGS, and CXXCPPFLAGS is now used in compile targets. 81 # Similar for other compiler/preprocessor flags.
|
| /petsc/include/petsc/private/cpp/ |
| H A D | unordered_map.hpp | 461 …_type &KHashTable<V, H, KE>::flag_bucket_at_(khash_int it, std::vector<flags_type> &flags) noexcept in flag_bucket_at_() argument 463 return flags[it / flag_pairs_per_bucket::value]; in flag_bucket_at_() 467 …&KHashTable<V, H, KE>::flag_bucket_at_(khash_int it, const std::vector<flags_type> &flags) noexcept in flag_bucket_at_() argument 469 return flags[it / flag_pairs_per_bucket::value]; in flag_bucket_at_() 490 …KHashTable<V, H, KE>::khash_test_flag_(khash_int it, const std::vector<flags_type> &flags) noexcept in khash_test_flag_() argument 493 return (flag_bucket_at_(it, flags) >> flag_bucket_index_(it)) & selector; in khash_test_flag_() 497 inline bool KHashTable<V, H, KE>::khash_is_del_(khash_int it, const std::vector<flags_type> &flags)… in khash_is_del_() argument 499 return khash_test_flag_<1>(it, flags); in khash_is_del_() 503 … KHashTable<V, H, KE>::khash_is_empty_(khash_int it, const std::vector<flags_type> &flags) noexcept in khash_is_empty_() argument 505 return khash_test_flag_<2>(it, flags); in khash_is_empty_() [all …]
|
| /petsc/src/sys/error/ |
| H A D | fp.c | 547 unsigned int flags; 552 flags = fegetexcept(); 553 if (flags & FE_DIVBYZERO) { 555 flags = _MM_GET_EXCEPTION_MASK(); 556 if (!(flags & _MM_MASK_DIV_ZERO)) { 563 PetscCall(PetscInfo(NULL, "Floating point trapping is on by default %d\n", flags)); 566 PetscCall(PetscInfo(NULL, "Floating point trapping is off by default %d\n", flags));
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscis.pxi | 153 cdef int acquirebuffer(self, Py_buffer *view, int flags) except -1: argument 156 c'i', 1, flags) 165 def __getbuffer__(self, Py_buffer *view, int flags): argument 166 self.acquirebuffer(view, flags)
|
| /petsc/share/petsc/ |
| H A D | Makefile.basic.user | 13 # This will use all the compiler flags that PETSc was compiled with, if you do not want the flags … 65 # Access variables for the build, including compilers, compiler flags, libraries etc
|
| /petsc/src/binding/petsc4py/conf/ |
| H A D | confpetsc.py | 882 def flaglist(flags): argument 894 if isinstance(flags, str): 895 flags = flags.split() 900 for f in flags: 908 flags = newflags 912 for word in flags: 950 def prepend_to_flags(path, flags): argument 953 return flags 965 return re.sub(r'((^|\s+)(-I|-L))(\s*["\']?)(\S+)(["\']?)', append_path, flags)
|