| /petsc/src/sys/objects/device/util/ |
| H A D | memory.c | 37 struct cudaPointerAttributes attr; in PetscGetMemType() local 39 …cerr = cudaPointerGetAttributes(&attr, ptr); /* Do not check error since before CUDA 11.0, passing… in PetscGetMemType() 42 mtype = attr.memoryType; in PetscGetMemType() 44 mtype = attr.type; in PetscGetMemType() 54 struct hipPointerAttribute_t attr; in PetscGetMemType() local 56 cerr = hipPointerGetAttributes(&attr, ptr); in PetscGetMemType() 59 mtype = attr.type; in PetscGetMemType() 61 mtype = attr.memoryType; in PetscGetMemType()
|
| /petsc/share/petsc/saws/js/ |
| H A D | tree.js | 67 .attr("width", numberOfLevels * 300) 68 .attr("height", numberOfLevels * 200) 70 .attr("transform", "translate(10,0)"); 89 .attr("class", "node") 90 .attr("transform", function (d){return "translate(" + d.y + "," + d.x + ")";}) //root: left 96 .attr("r", 5) 97 .attr("fill", "steelblue") 104 .attr('width',400) 105 ….attr('height',400)//perhaps just remove these attributes altogether so it can resize itself as ne… 107 .attr('requiredFeatures','http://www.w3.org/TR/SVG11/feature#Extensibility') [all …]
|
| H A D | main.js | 44 $("#displayCmdOptions").attr("checked",true); 45 $("#displayTree").attr("checked",true); 46 $("#displayMatrix").attr("checked",true);
|
| H A D | listLogic.js | 9 …var id = $(this).attr("id"); //really should not be used in this method. there are better w… 308 $("#symm" + childEndtag).attr("checked",true); 310 $("#posdef" + childEndtag).attr("checked",true); 312 $("#logstruc" + childEndtag).attr("checked",true); 315 $("#symm" + childEndtag).attr("disabled",true); 317 $("#posdef" + childEndtag).attr("disabled",true); 319 $("#posdef" + childEndtag).attr("disabled",true); 343 …var id = $(this).attr("id");//really should not be used in this method. there are better w… 355 …var id = $(this).attr("id"); //really should not be used in this method. there are better … 365 …var id = $(this).attr("id"); //really should not be used in this method. there are better … [all …]
|
| H A D | events.js | 20 $("#posdef" + endtag).attr("checked",false); 21 $("#posdef" + endtag).attr("disabled", true); 25 $("#posdef" + endtag).attr("disabled", false);
|
| H A D | treeInterface.js | 134 $("#posdef" + endtag).attr("disabled", true); 136 $("#posdef" + endtag).attr("disabled", false); 454 …var id = $(this).attr("id");//really should not be used in this method. there are better ways … 458 var x = $(this).attr("cx"); 459 var y = $(this).attr("cy"); 520 $("#temp_symm").attr("checked", true); 522 $("#temp_posdef").attr("checked", true); 524 $("#temp_logstruc").attr("checked", true);
|
| H A D | PETSc.js | 162 $("#data"+fullkey+vKey+j).attr("hidden",true); 180 …$("#data"+fullkey+"ChangedMethod0").find("option[value='true']").attr("selected","selected");//set… 187 …$("#data"+fullkey+"ChangedMethod0").find("option[value='true']").attr("selected","selected");//set… 200 …$("#data"+fullkey+"ChangedMethod0").find("option[value='true']").attr("selected","selected");//set…
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | cacheDetails.py | 99 def discoverL1CacheLineSize(self,attr): argument 112 for func_name,includes in self.L1CacheLineSizeMethods(attr.default): 122 if attr.valid(val): 124 … self.log.write('Cannot use value returned for {}: {}, continuing\n'.format(attr.enum(),val)) 125 return attr.default 132 attr = self.attrs['level1_dcache_linesize'] 133 argdb_val = self.argDB.get('known-'+attr.name) 137 …('Skipping determination of {} in batch mode, using default {}\n'.format(attr.enum(),attr.default)) 138 val = attr.default 140 val = self.discoverL1CacheLineSize(attr) [all …]
|
| /petsc/src/sys/tests/ |
| H A D | ex53.c | 14 PetscMPIInt key1, key2, attr1 = 100, attr2 = 200, *attr, iflg; in main() local 45 err = MPI_Comm_get_attr(newcomm, key1, &attr, &iflg); in main() 48 err = MPI_Comm_get_attr(MPI_COMM_WORLD, key1, &attr, &iflg); in main() 50 if (*attr != attr1) printf("Error: expected attribute %d, but got %d\n", attr1, *attr); in main() 51 err = MPI_Comm_get_attr(newcomm, key2, &attr, &iflg); in main() 53 if (*attr != attr2) printf("Error: expected attribute %d, but got %d\n", attr2, *attr); in main()
|
| /petsc/src/sys/objects/device/interface/ |
| H A D | memory.cxx | 204 auto &&attr = entry.second; in PetscDeviceRegisterMemory_Private() 208 entry.first, PetscMemTypeToString(attr.mtype), attr.size); in PetscDeviceRegisterMemory_Private() 410 auto &&attr = it->second; in PetscDeviceDeallocate_Private() 411 …t64_FMT ", size %zu bytes)", ptr, it->first, PetscMemTypeToString(attr.mtype), attr.id, attr.size); in PetscDeviceDeallocate_Private() 413 auto &&attr = found_it->second; in PetscDeviceDeallocate_Private() 417 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, attr.id, PETSC_MEMORY_ACCESS_WRITE, "memory dea… in PetscDeviceDeallocate_Private() 420 PetscUseTypeMethod(dctx, memfree, attr.mtype, (void **)&ptr); in PetscDeviceDeallocate_Private() 422 PetscCall(PetscDeviceCheckCapable_Private(dctx, PetscMemTypeHost(attr.mtype), "freeing")); in PetscDeviceDeallocate_Private() 550 const auto &attr = memory_map.search_for(ptr, true)->second; in PetscDeviceMemset() local 552 …PetscCall(PetscDeviceContextMarkIntentFromID(dctx, attr.id, PETSC_MEMORY_ACCESS_WRITE, "memory set… in PetscDeviceMemset() [all …]
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/ |
| H A D | _attr_cache.py | 41 def _get_cached(self, attr: str, func: Callable[..., _T], *args, **kwargs) -> _T: 77 if attr in cache: 78 return TYPE_CAST(_T, cache[attr]) 79 ret = cache[attr] = func(*args, **kwargs)
|
| H A D | _diag.py | 39 def __getattr__(self, attr: str) -> str: 42 return TYPE_CAST(str, getattr(diag_map, attr)) 51 success, ret = self._fuzzy_get_attribute(sub_diag_map, attr) 54 raise AttributeError(attr) 66 return {attr.replace('-', '_') : attr for attr in input_it} 72 def __getattr__(self, attr: str) -> str: 75 return diags[attr] 77 attr_items = [v for k, v in diags.items() if k.endswith(attr)] 80 raise AttributeError(attr)
|
| H A D | _src_pos.py | 78 def __getattr__(self, attr: str) -> Any: 79 return super()._get_cached(attr, getattr, self.source_location, attr) 292 def __getattr__(self, attr: str) -> Any: 293 return super()._get_cached(attr, getattr, self.source_range, attr) 407 attr = 'translation_unit' 408 tu = getattr(left, attr, None) 410 tu = getattr(right, attr, None)
|
| /petsc/src/binding/petsc4py/conf/ |
| H A D | stubgen.py | 227 attr = getattr(cls, name) 228 if is_class(attr): 230 lines.add = visit_class(attr, outer=cls_name) 245 attr = getattr(cls, name) 247 if is_method(attr): 249 if name == attr.__name__: 255 lines.add = visit_method(attr, qualname) 260 if is_datadescr(attr): 262 lines.add = visit_datadescr(attr) 265 if is_property(attr): [all …]
|
| /petsc/src/binding/petsc4py/docs/source/ |
| H A D | apidoc.py | 283 attr = getattr(cls, name) 284 if is_class(attr): 286 lines.add = visit_class(attr, outer=cls_name) 301 attr = getattr(cls, name) 303 if is_method(attr): 305 if name == attr.__name__: 311 lines.add = visit_method(attr) 314 if is_datadescr(attr): 316 lines.add = visit_datadescr(attr) 319 if is_property(attr): [all …]
|
| /petsc/src/sys/objects/device/impls/host/ |
| H A D | hostdevice.cxx | 26 PetscErrorCode Device::get_attribute_(PetscInt, PetscDeviceAttribute attr, void *value) noexcept in get_attribute_() argument 29 switch (attr) { in get_attribute_()
|
| /petsc/src/sys/mpiuni/ |
| H A D | mpi.c | 41 static MPI_Attr attr[MAX_COMM][MAX_ATTR]; variable 151 attr[CommIdx(MPI_COMM_WORLD)][0].active = 1; in Keyval_setup() 152 attr[CommIdx(MPI_COMM_WORLD)][0].attribute_val = &mpi_tag_ub; in Keyval_setup() 153 attr[CommIdx(MPI_COMM_SELF)][0].active = 1; in Keyval_setup() 154 attr[CommIdx(MPI_COMM_SELF)][0].attribute_val = &mpi_tag_ub; in Keyval_setup() 234 attr[idx][keyval].active = 1; in MPI_Comm_set_attr() 235 attr[idx][keyval].attribute_val = attribute_val; in MPI_Comm_set_attr() 244 if (attr[idx][keyval].active) { in MPI_Comm_delete_attr() 246 void *save_attribute_val = attr[idx][keyval].attribute_val; in MPI_Comm_delete_attr() 248 attr[idx][keyval].active = 0; in MPI_Comm_delete_attr() [all …]
|
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex2cu.cu | 17 struct cudaPointerAttributes attr; in main() local 32 cerr = cudaPointerGetAttributes(&attr, ptrs[i]); in main()
|
| H A D | ex2hip.hip.cxx | 17 hipPointerAttribute_t attr; in main() local 32 cerr = hipPointerGetAttributes(&attr, ptrs[i]); in main()
|
| /petsc/src/sys/utils/openmp/ |
| H A D | mpmpishm.c | 43 pthread_barrierattr_t attr; in PetscOmpCtrlCreateBarrier() local 89 PetscCallExternal(pthread_barrierattr_init, &attr); in PetscOmpCtrlCreateBarrier() 90 …PetscCallExternal(pthread_barrierattr_setpshared, &attr, PTHREAD_PROCESS_SHARED); /* make the barr… in PetscOmpCtrlCreateBarrier() 91 … PetscCallExternal(pthread_barrier_init, ctrl->barrier, &attr, (unsigned int)ctrl->omp_comm_size); in PetscOmpCtrlCreateBarrier() 92 PetscCallExternal(pthread_barrierattr_destroy, &attr); in PetscOmpCtrlCreateBarrier()
|
| /petsc/src/sys/objects/device/impls/sycl/ |
| H A D | sycldevice.sycl.cxx | 78 PetscErrorCode getattribute(PetscDeviceAttribute attr, void *value) const noexcept in getattribute() argument 82 switch (attr) { in getattribute() 210 PetscErrorCode Device::get_attribute_(PetscInt id, PetscDeviceAttribute attr, void *value) noexcept in get_attribute_() argument 213 PetscCall(devices_[id]->getattribute(attr, value)); in get_attribute_()
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | gcov.py | 716 formats = [attr for attr in ('html', 'xml') if getattr(args, attr)] 722 attr = 'log_output_' + stream_name variable 723 if getattr(args, attr) == stream_name: 724 setattr(args, attr, getattr(sys, stream_name))
|
| /petsc/src/sys/objects/device/impls/cupm/ |
| H A D | cupmdevice.cxx | 154 PetscErrorCode Device<T>::DeviceInternal::getattribute(PetscDeviceAttribute attr, void *value) cons… in getattribute() argument 158 switch (attr) { in getattribute() 348 PetscErrorCode Device<T>::get_attribute_(PetscInt id, PetscDeviceAttribute attr, void *value) noexc… in get_attribute_() argument 351 PetscCall(devices_[id]->getattribute(attr, value)); in get_attribute_()
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/util/ |
| H A D | _clang.py | 157 def __getattr__(self, attr: str) -> Any: 158 return getattr(self._function, attr)
|
| /petsc/lib/petsc/bin/maint/petsclinter/petsclinter/classes/docs/ |
| H A D | _doc_str.py | 134 def __getattr__(self, attr: str) -> SectionBase: 138 return sections[attr] 140 replaced_attr = attr.replace('_', ' ').casefold() 145 raise AttributeError(attr) 320 return (attr for section in self for attr in section.titles)
|