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
hkaiser_ has quit [Ping timeout: 256 seconds]
hkaiser has joined #ste||ar
Yorlik__ has joined #ste||ar
Yorlik_ has quit [Ping timeout: 264 seconds]
hkaiser has quit [Quit: Bye!]
Yorlik__ is now known as Yorlik
K-ballo1 has joined #ste||ar
K-ballo has quit [Ping timeout: 240 seconds]
K-ballo1 is now known as K-ballo
tufei has quit [Remote host closed the connection]
tufei has joined #ste||ar
hkaiser has joined #ste||ar
hkaiser has quit [Quit: Bye!]
akheir has joined #ste||ar
hkaiser has joined #ste||ar
akheir1 has joined #ste||ar
akheir has quit [Ping timeout: 246 seconds]
hkaiser has quit [Quit: Bye!]
K-ballo has quit [Ping timeout: 256 seconds]
K-ballo1 has joined #ste||ar
K-ballo1 is now known as K-ballo
hkaiser has joined #ste||ar
akheir has joined #ste||ar
akheir1 has quit [Ping timeout: 268 seconds]
HHN93 has joined #ste||ar
<HHN93>
I am trying to benchmark hpx::generate_n and the optimiser is optimising it away
<HHN93>
any advice on what to do to prevent it from begin completely optimised out?
<hkaiser>
HHN93: use the result for something after measuring, for instance call std::min_element and print the result
<hkaiser>
or assign the result to a global variable (the compiler can't be sure if that is used anywhere else)
<HHN93>
what do you suggest should be the generate function
<HHN93>
I tried using rand(), but it seems to be getting optimised
<HHN93>
sorry my bad, let me try again
<hkaiser>
I meant to call generate, take the measurement, and then do something with the generated sequence so that the compiler doesn't know whether it's ok to optimize the generate away
<HHN93>
can you suggest a generator function? is rand() the best option?