Lines Matching refs:std
40 …ObjectMapView(PetscViewer vwr, std::size_t nkeys, const PetscObjectId *keys, const PetscMemoryAcce… in MarkedObjectMapView()
51 for (std::size_t i = 0; i < nkeys; ++i) { in MarkedObjectMapView()
57 for (std::size_t j = 0; j < ndeps[i]; ++j) { in MarkedObjectMapView()
74 …comm, PetscDeviceContext dctx, std::size_t nkeys, const PetscObjectId *keys, const PetscMemoryAcce… in CheckMarkedObjectMap_Private()
78 std::array<char, 2048> buf; in CheckMarkedObjectMap_Private()
79 std::va_list argp; in CheckMarkedObjectMap_Private()
80 std::size_t len; in CheckMarkedObjectMap_Private()
97 static PetscErrorCode TestAllCombinations(PetscDeviceContext dctx, const std::vector<PetscContainer… in TestAllCombinations()
99 std::vector<PetscObjectId> cont_ids; in TestAllCombinations()
115 for (auto it = cont.cbegin(), next = std::next(it); it != cont.cend(); ++it, ++next) { in TestAllCombinations()
116 std::vector<int> found_keys; in TestAllCombinations()
117 std::size_t nkeys; in TestAllCombinations()
120 std::size_t *ndeps; in TestAllCombinations()
135 const auto num_expected_keys = std::min(cont.size(), static_cast<std::size_t>(2)); in TestAllCombinations()
137 std::ptrdiff_t key_idx = 0; in TestAllCombinations()
143 key_idx = std::distance(keys, std::find(keys, keys_end, actual_key)); in TestAllCombinations()
146 …PetscCall(CheckMarkedObjectMap(key_idx < std::distance(keys, keys_end), "marked object map could n… in TestAllCombinations()
165 …> 0, "Marked Object Map has extra object entry: id %" PetscInt64_FMT, keys[std::distance(found_key… in TestAllCombinations()
181 PETSC_NODISCARD static std::pair<PetscObjectId, std::pair<PetscMemoryAccessMode, std::vector<PetscD… in make_map_entry()
184 id, {mode, {std::forward<T>(dctxs)...}} in make_map_entry()
188 static PetscErrorCode CheckMapEqual(std::unordered_map<PetscObjectId, std::pair<PetscMemoryAccessMo… in CheckMapEqual()
190 std::size_t nkeys; in CheckMapEqual()
193 std::size_t *ndeps; in CheckMapEqual()
304 …const auto test_multiple_readers = [&](std::array<PetscDeviceContext, 2> readers, std::size_t sync… in main()