| /petsc/src/sys/objects/device/impls/sycl/ ! |
| H A D | sycldevice.sycl.cxx | 34 …DeviceInternal(int id) noexcept : id_(id), devInitialized_(false), syclDevice_(chooseSYCLDevice_(i… in DeviceInternal() argument 35 int id() const { return id_; } in id() function in Petsc::device::sycl::Device::DeviceInternal 60 …_COMM_SELF, PETSC_ERR_COR, "Device %d being viewed before it was initialized or configured", id()); in view() 81 PetscCheck(initialized(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d not initialized", id()); in getattribute() 92 static ::sycl::device chooseSYCLDevice_(int id) in chooseSYCLDevice_() argument 94 if (id == PETSC_SYCL_DEVICE_HOST) { in chooseSYCLDevice_() 97 return ::sycl::device::get_devices(::sycl::info::device_type::gpu)[id]; in chooseSYCLDevice_() 133 auto id = *defaultDeviceId; in initialize() local 144 …CIDE) ") to let PETSc decide, 0 and up for GPUs", "PetscDeviceCreate()", id, &id, nullptr, -2, std… in initialize() 152 …eck(ngpus || id < 0, comm, PETSC_ERR_USER_INPUT, "You specified a sycl gpu device with -device_sel… in initialize() [all …]
|
| /petsc/src/ksp/ksp/tests/benchmarkscatters/ ! |
| H A D | Streams-Intel | 3 …exec -hosts thing05 -hosts thing05 -bind-to core -map-by numa MPI rank 0 Process id: 48245 coreid 0 6 MPI rank 0 Process id: 48283 coreid 0 7 MPI rank 1 Process id: 48284 coreid 18 10 MPI rank 0 Process id: 48323 coreid 0 11 MPI rank 1 Process id: 48324 coreid 18 12 MPI rank 2 Process id: 48325 coreid 9 15 MPI rank 0 Process id: 48363 coreid 0 16 MPI rank 1 Process id: 48364 coreid 18 17 MPI rank 2 Process id: 48365 coreid 9 18 MPI rank 3 Process id: 48366 coreid 27 [all …]
|
| H A D | Streams-MPICH | 3 …t-mpich/bin/mpiexec -hosts thing05 -bind-to core -map-by numa MPI rank 0 Process id: 49029 coreid 0 6 MPI rank 0 Process id: 49064 coreid 0 7 MPI rank 1 Process id: 49065 coreid 9 10 MPI rank 0 Process id: 49100 coreid 0 11 MPI rank 1 Process id: 49101 coreid 9 12 MPI rank 2 Process id: 49102 coreid 18 15 MPI rank 0 Process id: 49137 coreid 0 16 MPI rank 1 Process id: 49138 coreid 9 17 MPI rank 2 Process id: 49139 coreid 18 18 MPI rank 3 Process id: 49140 coreid 27 [all …]
|
| /petsc/src/mat/impls/aij/mpi/mumps/ ! |
| H A D | mumps.c | 418 static inline MPI_Datatype MPIU_MUMPSREAL(const XMUMPS_STRUC_C *id) in MPIU_MUMPSREAL() argument 420 return id->precision == PETSC_PRECISION_DOUBLE ? MPI_DOUBLE : MPI_FLOAT; in MPIU_MUMPSREAL() 538 PetscCall(PetscCallMumps_Private(&mumps->id)); \ 549 …PetscCallMPI(MPI_Bcast(mumps->id.infog, PETSC_STATIC_ARRAY_LENGTH(tmp.infog), MPIU_MUMPSINT, 0, mu… 550 …PetscCallMPI(MPI_Bcast(mumps->id.info, PETSC_STATIC_ARRAY_LENGTH(tmp.info), MPIU_MUMPSINT, 0, mump… 551 …PetscCallMPI(MPI_Bcast(mumps->id.rinfog, PETSC_STATIC_ARRAY_LENGTH(tmp.rinfog), MPIU_MUMPSREAL(&mu… 552 …PetscCallMPI(MPI_Bcast(mumps->id.rinfo, PETSC_STATIC_ARRAY_LENGTH(tmp.rinfo), MPIU_MUMPSREAL(&mump… 555 PetscCall(PetscCallMumps_Private(&mumps->id)); \ 563 PetscCall(PetscCallMumps_Private(&mumps->id)); \ 570 XMUMPS_STRUC_C id; member [all …]
|
| /petsc/src/mat/utils/ ! |
| H A D | pheap.c | 5 PetscInt id; member 33 #define Id(h, loc) ((h)->base[loc].id) 37 PetscInt id, val; in Swap() local 38 id = Id(h, loc); in Swap() 40 h->base[loc].id = Id(h, loc2); in Swap() 42 h->base[loc2].id = id; in Swap() 73 h->base[0].id = -1; in PetscHeapCreate() 79 PetscErrorCode PetscHeapAdd(PetscHeap h, PetscInt id, PetscInt val) in PetscHeapAdd() argument 87 h->base[loc].id = id; in PetscHeapAdd() 98 PetscErrorCode PetscHeapPop(PetscHeap h, PetscInt *id, PetscInt *val) in PetscHeapPop() argument [all …]
|
| /petsc/share/petsc/saws/js/ ! |
| H A D | events.js | 4 var id = this.id; 5 var endtag = id.substring(id.indexOf("0"),id.length); 13 var id = this.id; 14 var endtag = id.substring(id.indexOf("0"),id.length); 34 var id = this.id; 35 var endtag = id.substring(id.indexOf("0"),id.length);
|
| H A D | listLogic.js | 9 …var id = $(this).attr("id"); //really should not be used in this method. there are better w… 10 var endtag = id.substring(id.indexOf("0"),id.length); 343 …var id = $(this).attr("id");//really should not be used in this method. there are better w… 344 var endtag = id.substring(id.indexOf("0"),id.length); 355 …var id = $(this).attr("id"); //really should not be used in this method. there are better … 356 var endtag = id.substring(id.indexOf("0"),id.length); 365 …var id = $(this).attr("id"); //really should not be used in this method. there are better … 366 var endtag = id.substring(id.indexOf("0"),id.length); 375 …var id = $(this).attr("id"); //really should not be used in this method. there are be… 376 var endtag = id.substring(id.indexOf("0"),id.length); [all …]
|
| /petsc/src/dm/impls/plex/tests/ ! |
| H A D | ex102.c | 22 PetscInt id; in SetupBoundaries() local 34 id = 4; in SetupBoundaries() 35 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "left", label, 1, &id, 0, 1, &cmp, NULL, NULL, NULL, … in SetupBoundaries() 37 id = 2; in SetupBoundaries() 38 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "right", label, 1, &id, 0, 1, &cmp, NULL, NULL, NULL,… in SetupBoundaries() 39 id = 1; in SetupBoundaries() 40 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "bottom", label, 1, &id, 0, 2, cmps_y, NULL, NULL, NU… in SetupBoundaries() 45 id = 6; in SetupBoundaries() 46 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "left", label, 1, &id, 0, 2, cmps_xy, NULL, NULL, NUL… in SetupBoundaries() 47 id = 5; in SetupBoundaries() [all …]
|
| /petsc/src/vec/is/tests/ ! |
| H A D | ex7.c | 26 PetscInt id[4] = {0, 1, 2, 3}; in main() local 27 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, bs, 4, id, PETSC_COPY_VALUES, <og)); in main() 29 PetscInt id[4] = {2, 3, 6, 7}; in main() local 30 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, bs, 4, id, PETSC_COPY_VALUES, <og)); in main() 32 PetscInt id[4] = {1, 4, 3, 5}; in main() local 33 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, bs, 4, id, PETSC_COPY_VALUES, <og)); in main() 35 PetscInt id[8] = {3, 5, 7, 8}; in main() local 36 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, bs, 4, id, PETSC_COPY_VALUES, <og)); in main() 40 PetscInt id[8] = {0, 1, 2, 3, 1, 4, 3, 5}; in main() local 41 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, bs, 8, id, PETSC_COPY_VALUES, <og)); in main() [all …]
|
| /petsc/src/ksp/ksp/tests/raja/ ! |
| H A D | ex1.raja.cxx | 148 int id = n * (N + 2) + m; in main() local 149 I[id] = 0.25 * (-f + Iold[id - N - 2] + Iold[id + N + 2] + Iold[id - 1] + Iold[id + 1]); in main() 201 int id = n * (N + 2) + m; in main() local 202 I[id] = 0.25 * (-f + Iold[id - N - 2] + Iold[id + N + 2] + Iold[id - 1] + Iold[id + 1]); in main() 248 int id = n * (N + 2) + m; in main() local 249 I[id] = 0.25 * (-f + Iold[id - N - 2] + Iold[id + N + 2] + Iold[id - 1] + Iold[id + 1]); in main() 301 int id = n * (N + 2) + m; in main() 302 I[id] = 0.25 * (-f + Iold[id - N - 2] + Iold[id + N + 2] + Iold[id - 1] + Iold[id + 1]); in main() 363 int id = n * (N + 2) + m; in main() 364 … d_I[id] = 0.25 * (-f + d_Iold[id - N - 2] + d_Iold[id + N + 2] + d_Iold[id - 1] + d_Iold[id + 1]); in main() [all …]
|
| /petsc/src/binding/petsc4py/test/ ! |
| H A D | test_mat_schur.py | 29 self.assertEqual(A00_dup.id, A00.id) 30 self.assertEqual(A00p_dup.id, A00.id) 31 self.assertEqual(A01_dup.id, A01.id) 32 self.assertEqual(A10_dup.id, A10.id) 33 self.assertEqual(A11_dup.id, A11.id)
|
| /petsc/src/snes/tutorials/network/water/ ! |
| H A D | waterreaddata.c | 190 int id = 0, pattern = 0; in WaterReadData() local 194 ndata = sscanf(line, "%d %lf %lf %d", &id, &v1, &v2, &pattern); in WaterReadData() 196 vert[nv].id = id; in WaterReadData() 201 junction->id = vert[nv].id; in WaterReadData() 208 int id = 0, pattern = 0; in WaterReadData() local 212 ndata = sscanf(line, "%d %lf %d", &id, &v1, &pattern); in WaterReadData() 214 vert[nv].id = id; in WaterReadData() 217 reservoir->id = vert[nv].id; in WaterReadData() 224 int id = 0, curve = 0; in WaterReadData() local 228 …ndata = sscanf(line, "%d %lf %lf %lf %lf %lf %lf %d", &id, &v1, &v2, &v3, &v4, &v5, &v6, &… in WaterReadData() [all …]
|
| /petsc/src/mat/tests/ ! |
| H A D | ex29.c | 9 PetscInt id, val, cnt, *values; in main() local 26 PetscCall(PetscHeapPop(h, &id, &val)); in main() 27 PetscCall(PetscHeapStash(h, id, val + 10)); in main() 28 PetscCall(PetscHeapPop(h, &id, &val)); in main() 29 PetscCall(PetscHeapStash(h, id, val + 10)); in main() 38 PetscCall(PetscHeapPop(h, &id, &val)); in main() 40 while (id >= 0) { in main() 42 PetscCall(PetscHeapPop(h, &id, &val)); in main()
|
| /petsc/src/sys/objects/device/tests/output/ ! |
| H A D | ex8_sycl.out | 3 id: 0 6 id: 0 9 id: 0 16 id: 0 19 id: 0 22 id: 0
|
| H A D | ex8_host_no_device.out | 3 id: 0 6 id: 0 9 id: 0 16 id: 0 19 id: 0 22 id: 0
|
| H A D | ex8_hip.out | 3 id: 0 6 id: 0 9 id: 0 16 id: 0 19 id: 0 22 id: 0
|
| H A D | ex8_host_with_device.out | 3 id: 0 6 id: 0 9 id: 0 16 id: 0 19 id: 0 22 id: 0
|
| H A D | ex8_cuda.out | 3 id: 0 6 id: 0 9 id: 0 16 id: 0 19 id: 0 22 id: 0
|
| H A D | ex6_root_device_context_stream_type-default_hip.out | 7 id: 0 14 id: 0 21 id: 0 28 id: 0 35 id: 0 42 id: 0
|
| /petsc/src/mat/tests/output/ ! |
| H A D | ex29_1.out | 3 Heap in (id,value) pairs 5 Stash in (id,value) pairs 8 Heap in (id,value) pairs 10 Stash in (id,value) pairs 14 Heap in (id,value) pairs 16 Stash in (id,value) pairs
|
| /petsc/src/sys/objects/device/interface/ ! |
| H A D | memory.cxx | 49 PetscObjectId id = 0; // id of allocation member 66 …pe mtype_, PetscObjectId id_, std::size_t size_) noexcept : mtype(mtype_), id(id_), size(size_) { } in PointerAttributes() 70 return (mtype == other.mtype) && (id == other.id) && (size == other.size); in operator ==() 183 …ame: %s, type: %s) can only handle %s host memory", PetscObjectCast(dctx)->id, PetscObjectCast(dct… in PetscDeviceCheckCapable_Private() 190 …TSC_RESTRICT ptr, PetscMemType mtype, std::size_t size, PetscObjectId *PETSC_RESTRICT id = nullptr) in PetscDeviceRegisterMemory_Private() argument 212 if (id) *id = newid; in PetscDeviceRegisterMemory_Private() 224 …PetscCheck(PointerAttributes(mtype, old.id, size) == old, PETSC_COMM_SELF, PETSC_ERR_LIB, "Pointer… in PetscDeviceRegisterMemory_Private() 225 … PetscMemTypeToString(old.mtype), old.size, old.id, PetscMemTypeToString(mtype), size, old.id); in PetscDeviceRegisterMemory_Private() 227 if (id) *id = it->second.id; in PetscDeviceRegisterMemory_Private() 327 PetscObjectId id = 0; in PetscDeviceAllocate_Private() local [all …]
|
| H A D | mark_dcontext.cxx | 77 PetscObjectId id; in PetscDeviceContextRecordEvent_Private() local 83 id = PetscObjectCast(dctx)->id; in PetscDeviceContextRecordEvent_Private() 87 if ((id == event->dctx_id) && (state <= event->dctx_state)) PetscFunctionReturn(PETSC_SUCCESS); in PetscDeviceContextRecordEvent_Private() 100 event->dctx_id = id; in PetscDeviceContextRecordEvent_Private() 119 if (PetscObjectCast(dctx)->id == event->dctx_id) PetscFunctionReturn(PETSC_SUCCESS); in PetscDeviceContextWaitForEvent_Private() 393 const auto dctx_id = PetscObjectCast(dctx)->id; in PetscDeviceContextMapIterVisitor() 433 …oss << "synced dctx " << PetscObjectCast(dctx)->id << ", remaining leaves for obj " << mapit->firs… in PetscDeviceContextSyncClearMap_Internal() 461 …id, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Upstream dctx %" PetscInt64_FMT " no longer exists, now has … in PetscDeviceContextSyncClearMap_Internal() 489 …tx)->name ? PetscObjectCast(dctx)->name : "unnamed", PetscObjectCast(dctx)->id, oss.str().c_str()); in PetscDeviceContextCheckNotOrphaned_Internal() 494 … (%s): " mess, PetscObjectCast(dctx)->id, PetscObjectCast(dctx)->name ? PetscObjectCast(dctx)->nam… [all …]
|
| /petsc/src/sys/objects/device/impls/cupm/ ! |
| H A D | cupmdevice.cxx | 42 PETSC_NODISCARD auto id() const -> decltype(id_) { return id_; } in id() function in Petsc::device::cupm::Device::DeviceInternal 63 if (cupmSetDevice(id()) != cupmErrorDeviceAlreadyInUse) PetscCallCUPM(cupmGetLastError()); in initialize() 96 …d(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d being configured before it was initialized", id()); in configure() 114 …_COMM_SELF, PETSC_ERR_COR, "Device %d being viewed before it was initialized or configured", id()); in view() 157 PetscAssert(initialized(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d was not initialized", id()); in getattribute() 313 const auto id = *inid == PETSC_DECIDE ? defaultDevice_ : (int)*inid; in init_device_id_() local 319 …id) < devices_.size(), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Only supports %zu number of dev… in init_device_id_() 321 if (!devices_[id]) devices_[id] = util::make_unique<DeviceInternal>(id); in init_device_id_() 322 …etscAssert(id == devices_[id]->id(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Entry %d contains device wi… in init_device_id_() 323 PetscCall(devices_[id]->initialize()); in init_device_id_() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ ! |
| H A D | Log.pyx | 275 cdef PetscLogStage id 277 property id: 280 return self.id 283 self.id = 0 286 return <int> self.id 307 CHKERR(PetscLogStagePush(self.id)) 327 CHKERR(PetscLogStageFindName(self.id, &cval)) 351 CHKERR(PetscLogStageSetActive(self.id, PETSC_TRUE)) 363 CHKERR(PetscLogStageSetActive(self.id, PETSC_FALSE)) 376 CHKERR(PetscLogStageGetActive(self.id, &flag)) [all …]
|
| /petsc/src/snes/tutorials/ ! |
| H A D | ex27.c | 379 PetscInt id, bd; in SetupPrimalProblem() local 393 id = 1; in SetupPrimalProblem() 394 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "bottom wall primal potential", label, 1, &id, 0, 0, … in SetupPrimalProblem() 396 id = 2; in SetupPrimalProblem() 397 …PetscCall(DMAddBoundary(dm, DM_BC_NATURAL, "right wall flux", label, 1, &id, 0, 0, NULL, NULL, NUL… in SetupPrimalProblem() 399 …PetscCall(PetscWeakFormSetIndexBdResidual(wf, label, id, 0, 0, 0, f0_quadratic_bd_primal, 0, NULL)… in SetupPrimalProblem() 401 id = 3; in SetupPrimalProblem() 402 …PetscCall(DMAddBoundary(dm, DM_BC_ESSENTIAL, "top wall primal potential", label, 1, &id, 0, 0, NUL… in SetupPrimalProblem() 404 id = 4; in SetupPrimalProblem() 405 …PetscCall(DMAddBoundary(dm, DM_BC_NATURAL, "left wall flux", label, 1, &id, 0, 0, NULL, NULL, NULL… in SetupPrimalProblem() [all …]
|