Title
Possible need for extra storage in inner_product
Status
resolved
Section
[inner.product]
Submitter
United States

Created on 2017-02-03.00:00:00 last changed 86 months ago

Messages

Date: 2017-03-15.00:00:00

[ 2017-03-12, post-Kona ]

Resolved by P0623R0.

Date: 2017-02-03.00:00:00
Addresses US 161

There is a surprising sequential operation applying BinaryOp1 in inner_product that may, for example, require additional storage for the parallel algorithms to enable effective distribution of work, and is likely to be a performance bottleneck. GENERALIZED_SUM is probably intended here for the parallel version of the algorithm, with the corresponding strengthening on constraints on BinaryOp1 to allow arbitrary order of evaluation.

Proposed change: For the overloads taking an execution policy, copy the current specification, but replace algorithm in Effects with

GENERALIZED_SUM(plus<>(), init, multiplies<>(*i1, *i2), ...)
GENERALIZED_SUM(binary_op1, init, binary_op2(*i1, *i2), ...)
History
Date User Action Args
2017-03-12 23:04:12adminsetmessages: + msg9090
2017-03-12 23:04:12adminsetstatus: new -> resolved
2017-02-03 00:00:00admincreate