hkaiser changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar-group.org | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | This channel is logged: irclog.cct.lsu.edu
Yorlik_ has joined #ste||ar
Yorlik has quit [Ping timeout: 268 seconds]
hkaiser has quit [Quit: Bye!]
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 252 seconds]
K-ballo1 is now known as K-ballo
<K-ballo> satacker[m]: declval must not be used
<K-ballo> odr-used that is, it's only meant to appear in unevaluated contexts
<K-ballo> if you actually called declval<bool>() what would it return? true? false? something else? where would the refered storage live?
<satacker[m]> <K-ballo> "odr-used that is, it's only..." <- Thanks, got it
<gonidelis[m]> K-ballo: same applies to whatever type, no? not just bool...
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 268 seconds]
K-ballo1 is now known as K-ballo
hkaiser has joined #ste||ar
<pansysk75[m]> Is there a straightforward way to get a std::vector<T> from a std::vector<hpx::future<T>> without copying?
<pansysk75[m]> Sth like a move constructor, its ok for the std::vector<hpx::future<T>> to be invalidated
<hkaiser> pansysk75[m]: hpx:unwrap
<hkaiser> vector<future<T>> vf = {}; vector<T> v = hpx::unwrap(vf);
<pansysk75[m]> thanks! no need to explain further :)
<hkaiser> even vector<future<T>> vf = {}; vector<T> v = hpx::unwrap(std::move(vf));
<pansysk75[m]> 2nd example invalidates vf, does the 1st one invalidate vf as well?
<hkaiser> I think the first one either doesn't work or invalidate the futures, not sure which
<pansysk75[m]> aha ok, i will try them out
<pansysk75[m]> thanks!
<hkaiser> the second version is correct either way
<satacker[m]> <gonidelis[m]> "K-ballo: same applies to..." <- Yes, found odr use https://en.cppreference.com/w/cpp/language/definition#ODR-use
<gonidelis[m]> Thanks 🙏🏼
hkaiser has quit [Read error: Connection reset by peer]
diehlpk_work has joined #ste||ar
hkaiser has joined #ste||ar
hkaiser has quit [Client Quit]
hkaiser has joined #ste||ar
<hkaiser> pansysk75[m]: I know I promised to give you an example on how to insert markers into the generated vtune traces using the itt-notify APIs, here you go: https://github.com/STEllAR-GROUP/hpx/blob/master/libs/core/executors/include/hpx/executors/fork_join_executor.hpp#L538-L543
<pansysk75[m]> Thanks, will certainly be useful!
K-ballo has quit [Ping timeout: 252 seconds]
K-ballo has joined #ste||ar
Yorlik_ is now known as Yorlik
diehlpk_work has quit [Remote host closed the connection]