hkaiser changed the topic of #ste||ar to: STE||AR: Systems Technology, Emergent Parallelism, and Algorithm Research | stellar.cct.lsu.edu | HPX: A cure for performance impaired parallel applications | github.com/STEllAR-GROUP/hpx | Buildbot: http://rostam.cct.lsu.edu/ | Log: http://irclog.cct.lsu.edu/
jaafar has quit [Ping timeout: 246 seconds]
K-ballo has quit [Quit: K-ballo]
hkaiser has quit [Quit: bye]
nanashi55 has quit [Ping timeout: 250 seconds]
nanashi55 has joined #ste||ar
jaafar has joined #ste||ar
jaafar has quit [Ping timeout: 268 seconds]
david_pfander has joined #ste||ar
Vir has joined #ste||ar
<jbjnr__>
nikunj: yt?
<nikunj>
jbjnr__, here
nikunj has quit [Remote host closed the connection]
nikunj has joined #ste||ar
<jbjnr__>
nikunj: I have problems with a code that uses #include <hpx_main.hpp> and does not seem to get hpx threads initialized before int main(int argc, char **argv)
<nikunj>
jbjnr__, could you please share the code to reproduce the problem
<jbjnr__>
code is too big. testing somethig smaller
<nikunj>
i see, which environment are you working on?
<nikunj>
jbjnr__, also, does it give any build errors?
<heller_>
ok, I really want to switch to gitlab ;)
<heller_>
with automated performance metric regression reports on merge requests...\
<zao>
Ooh.
<heller_>
this is pretty neat, I think
<heller_>
more or less exactly what I was looking for ;)
<jbjnr__>
nikunj: /usr/bin/ld: CMakeFiles/Worklets_HPX.dir/UnitTestBoundingIntervalHierarchy.cxx.o:(.data+0x0): multiple definition of `hpx_start::include_libhpx_wrap'; CMakeFiles/Worklets_HPX.dir/UnitTestAverageByKey.cxx.o:(.data+0x0): first defined here
<jbjnr__>
+ 4 million more of the same errors :(
<nikunj>
jbjnr__, did you include hpx_main in multiple files?
<jbjnr__>
yes
<jbjnr__>
I was trying to spoof the unit testing of this library to include it
<nikunj>
that is the reason for the multiple definition
<jbjnr__>
but I need to look for another way now
<nikunj>
you need to add the hpx_main only to the executable with int main, it takes care of everything else by itseld
<nikunj>
*itself
<nikunj>
sadly, hpx_main includes a variable initialization, multiple inclusion of that variable leads to multiple definition problem
<jbjnr__>
I understand the problem, but I cannot modify hundreds of unit tests. I wanted t inject hpx_main into them somehow. I will keep playing. When I modified one by hand the normal way, it did not work (hence my original query)
<nikunj>
if you include hpx_main only in the executable file with int main(int argc, char **argv) then it will produce expected results
<nikunj>
let me think of a way to get around the problem
<jbjnr__>
I tried adding hpx_main to the single unit_test main wrapper, but hpx did not get initialized
<jbjnr__>
hence my original question
<nikunj>
that's odd, which environment are you on?
<jbjnr__>
linux
<jbjnr__>
the hpx tests run ok, but mine not. I'll have to investigate.
<nikunj>
could you please share the cmakelists for the tests?
<jbjnr__>
cmake too complicated, it's a whole new project
<jbjnr__>
let me play. I'll ask again if I need anything. srry for timewasting
<jbjnr__>
^sorry
<nikunj>
do you make use of hpx_add_executable?
<nikunj>
or the cmake provided add_executable?
K-ballo has joined #ste||ar
nikunj97 has joined #ste||ar
nikunj has quit [Ping timeout: 240 seconds]
<jbjnr__>
nikunj97: I'm including hpx_main, but int main is running on a normal thread. How should I debug it?
<jbjnr__>
aha. I see ....
daissgr has joined #ste||ar
hkaiser has joined #ste||ar
hkaiser has quit [Ping timeout: 268 seconds]
<nikunj97>
jbjnr__, did you find it?
<jbjnr__>
I fixed it
<nikunj97>
ohh that's great, how?
<jbjnr__>
just stupid cmake stuff
<jbjnr__>
injecting hpx_main into the test and getting the link ordering right
<nikunj97>
aah!
<nikunj97>
cmake can be frustrating at time :/
hkaiser has joined #ste||ar
aserio has joined #ste||ar
hkaiser has quit [Quit: bye]
bibek has quit [Quit: Konversation terminated!]
jaafar has joined #ste||ar
bibek has joined #ste||ar
hkaiser has joined #ste||ar
bibek has quit [Quit: Konversation terminated!]
aserio has quit [Ping timeout: 268 seconds]
daissgr has quit [Quit: WeeChat 1.9.1]
aserio has joined #ste||ar
bibek has joined #ste||ar
bibek has quit [Quit: Konversation terminated!]
bibek has joined #ste||ar
david_pfander has quit [Ping timeout: 246 seconds]