110computeInputDigest(
const bool need_part,
const int nb_options,
const MetisGraphView& my_graph,
111 const idx_t* vtxdist,
const idx_t* wgtflag,
const idx_t* numflag,
const idx_t* ncon,
112 const idx_t* nparts,
const real_t* tpwgts,
const real_t* ubvec,
const real_t* ipc2redist,
113 const idx_t* options)
119 COMPUTE_HASH1(my_graph.xadj, hash_value);
120 COMPUTE_HASH1(my_graph.adjncy, hash_value);
121 COMPUTE_HASH1(my_graph.vwgt, hash_value);
123 if (my_graph.have_vsize) {
124 COMPUTE_HASH1(my_graph.vsize, hash_value);
127 if (my_graph.have_adjwgt) {
128 COMPUTE_HASH1(my_graph.adjwgt, hash_value);
132 COMPUTE_HASH1(my_graph.part, hash_value);
137 COMPUTE_HASH(vtxdist, m_nb_rank + 1, hash_value);
138 COMPUTE_HASH(wgtflag, 1, hash_value);
139 COMPUTE_HASH(numflag, 1, hash_value);
140 COMPUTE_HASH(ncon, 1, hash_value);
141 COMPUTE_HASH(nparts, 1, hash_value);
142 COMPUTE_HASH(tpwgts, (*nparts) * (*ncon), hash_value);
143 COMPUTE_HASH(ubvec, (*ncon), hash_value);
146 COMPUTE_HASH(ipc2redist, 1, hash_value);
150 if ((*options) == 1) {
151 COMPUTE_HASH(options, nb_options, hash_value);
154 COMPUTE_HASH(options, 1, hash_value);
impl::SpanTypeFromSize< conststd::byte, SizeType >::SpanType asBytes(const SpanImpl< DataType, SizeType, Extent > &s)
Converti la vue en un tableau d'octets non modifiables.