Lines Matching refs:addr
18 …void *addr; // address on this process; points to same physical address on all pro… member
69 PetscCall(PetscShmgetUnmapAddresses(addresses->n, addresses->addr)); in PCMPIServerAddressesDestroy()
109 if (allocation->addr == baseaddres[i]) { in PetscShmgetMapAddresses()
136 if (next->shmkey == shmkey) addres[i] = next->addr; in PetscShmgetMapAddresses()
147 allocation->addr = shmat(allocation->shmid, NULL, 0); in PetscShmgetMapAddresses()
148 …PetscCheck(allocation->addr, PETSC_COMM_SELF, PETSC_ERR_SYS, "Unable to map PCMPI shared memory ke… in PetscShmgetMapAddresses()
149 addres[i] = allocation->addr; in PetscShmgetMapAddresses()
183 if (next->addr == addres[i]) { in PetscShmgetUnmapAddresses()
184 …PetscCheck(!shmdt(next->addr), PETSC_COMM_SELF, PETSC_ERR_SYS, "Unable to shmdt() location %s, see… in PetscShmgetUnmapAddresses()
273 PetscErrorCode PetscShmgetAllocateArray(size_t sz, size_t asz, void *addr[]) in PetscShmgetAllocateArray() argument
276 …erverUseShmget || !PCMPIServerActive || PCMPIServerInSolve) PetscCall(PetscMalloc(sz * asz, addr)); in PetscShmgetAllocateArray()
287 allocation->addr = shmat(allocation->shmid, NULL, 0); in PetscShmgetAllocateArray()
288 …PetscCheck(allocation->addr, PETSC_COMM_SELF, PETSC_ERR_LIB, "Unable to shmat() of shmid %d %s", a… in PetscShmgetAllocateArray()
290 …PetscCheck((uint64_t)allocation->addr != 0xffffffffffffffff, PETSC_COMM_SELF, PETSC_ERR_LIB, "shma… in PetscShmgetAllocateArray()
299 *addr = allocation->addr; in PetscShmgetAllocateArray()
300 …o(NULL, "Allocating PCMPI Server array %p shmkey %d shmid %d size %d\n", *addr, allocation->shmkey… in PetscShmgetAllocateArray()
324 PetscErrorCode PetscShmgetDeallocateArray(void *addr[]) in PetscShmgetDeallocateArray() argument
327 if (!*addr) PetscFunctionReturn(PETSC_SUCCESS); in PetscShmgetDeallocateArray()
328 …if (!PCMPIServerUseShmget || !PCMPIServerActive || PCMPIServerInSolve) PetscCall(PetscFree(*addr)); in PetscShmgetDeallocateArray()
334 if (next->addr == *addr) { in PetscShmgetDeallocateArray()
335 …NULL, "Deallocating PCMPI Server array %p shmkey %d shmid %d size %d\n", *addr, next->shmkey, next… in PetscShmgetDeallocateArray()
336 …PetscCheck(!shmdt(next->addr), PETSC_COMM_SELF, PETSC_ERR_SYS, "Unable to shmdt() location %s, see… in PetscShmgetDeallocateArray()
337 … free shared memory addr %p key %d shmid %d %s, see PCMPIServerBegin()", *addr, next->shmkey, next… in PetscShmgetDeallocateArray()
338 *addr = NULL; in PetscShmgetDeallocateArray()
347 …TSC_COMM_SELF, PETSC_ERR_PLIB, "Unable to locate PCMPI allocated shared memory address %p", *addr); in PetscShmgetDeallocateArray()