Searched refs:ctxlist (Results 1 – 2 of 2) sorted by relevance
884 auto &ctxlist = nullContexts[dtype]; in PetscDeviceContextGetNullContextForDevice_Private() local890 if (static_cast<std::size_t>(devid) >= ctxlist.size()) PetscCallCXX(ctxlist.resize(devid + 1)); in PetscDeviceContextGetNullContextForDevice_Private()891 if (PetscUnlikely(!ctxlist[devid])) { in PetscDeviceContextGetNullContextForDevice_Private()907 PetscCallCXX(ctxlist.insert(std::next(ctxlist.begin(), devid), *dctx)); in PetscDeviceContextGetNullContextForDevice_Private()908 } else *dctx = ctxlist[devid]; in PetscDeviceContextGetNullContextForDevice_Private()
592 void *ctxlist; in DMSwarmCollect_General() local603 PetscCall(PetscMalloc(ctx_size * size, &ctxlist)); in DMSwarmCollect_General()604 …PetscCallMPI(MPI_Allgather(ctx, len, MPI_CHAR, ctxlist, len, MPI_CHAR, PetscObjectComm((PetscObjec… in DMSwarmCollect_General()615 _ctx_r = (void *)((char *)ctxlist + r * ctx_size); in DMSwarmCollect_General()663 PetscCall(PetscFree(ctxlist)); in DMSwarmCollect_General()