Hi Mikael,

Thanks for your advice and patience!

I checked the lib directory of HPX and it is correct. Also Thanks to Wei, he 
mentioned that I did not specify " -DPHYLANX_WITH_EXAMPLES=ON " when building 
Phylanx. After I add this line and rebuild Phylanx, that assertion error is 
gone.

Many thanks!

Best,
Nanmiao
________________________________
From: [email protected] <[email protected]> 
on behalf of Simberg Mikael <[email protected]>
Sent: Friday, June 26, 2020 5:40 AM
To: [email protected] <[email protected]>
Subject: Re: [hpx-users] Possible HPX errors


Ok, the first result tells us that something is most likely not right in your 
environment. The old enum value for runtime_mode_console is the same as the new 
value for runtime_mode_local. Could you please check that you don't 
accidentally have e.g. the lib directory of an old HPX install in 
`LD_LIBRARY_PATH` (or that ldd on the executable shows the libhpx.so you expect 
it to show). If that doesn't show anything building phylanx in a docker 
container would be useful to rule out a bug on the HPX side. If you can 
reproduce it in the container it's most likely an HPX bug, otherwise it's most 
likely your environment.

________________________________
From: [email protected] <[email protected]> 
on behalf of Nanmiao Wu <[email protected]>
Sent: Friday, June 26, 2020 4:46:15 AM
To: [email protected]
Subject: Re: [hpx-users] Possible HPX errors

Hi Mikael,

Thanks for the detailed solutions!

When I run the test with  "--hpx:debug-timing-log", I see "creating local 
runtime" on the second line. I add "auto rt = hpx::get_runtime()" at the top of 
hpx_main, but still got that error.  I did not get this error in April 14th and 
could run it successfully at that time. But right now, I got this error every 
time I ran it. Actually, I am not sure that whether the error is due to my 
local Linux setting since my friend who uses Windows can run it successfully...

Best,
Nanmiao

________________________________
From: [email protected] <[email protected]> 
on behalf of Simberg Mikael <[email protected]>
Sent: Thursday, June 25, 2020 2:01 AM
To: [email protected] <[email protected]>
Subject: Re: [hpx-users] Possible HPX errors


Thanks Nanmiao. That unfortunately does not help... There are two other simple 
things you can try before going all-in with debugging. The first is to run the 
test with "--hpx:debug-timing-log" (ironically this seems to hang, I'll try to 
fix that independently). You should see on the second line "creating 
distributed runtime" or "creating local runtime". Let me know which one. The 
second is to check if adding "auto rt = hpx::get_runtime()" at the top of 
hpx_main also hits an assert or if it works fine.


Beyond that you can try putting a break point on this line: 
https://github.com/STEllAR-GROUP/hpx/blob/291736b9538afed58269dd1611fd71b8ea839f1f/src/runtime_distributed.cpp#L1483<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSTEllAR-GROUP%2Fhpx%2Fblob%2F291736b9538afed58269dd1611fd71b8ea839f1f%2Fsrc%2Fruntime_distributed.cpp%23L1483&data=02%7C01%7Cwnanmi1%40lsu.edu%7C9dc506c115a0407cf33208d819c5b687%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637287684282808116&sdata=Q1IgxgpCwDO9W0hlzZRNST5wFKyOdDk3QENS3%2Fsk3xI%3D&reserved=0>.
 That should be executed before you enter hpx_main on the worker thread where 
hpx_main gets executed. Running with --hpx:threads=1 might make it a bit 
easier. Does the assert fire every time you run the test?

________________________________
From: [email protected] <[email protected]> 
on behalf of Nanmiao Wu <[email protected]>
Sent: Wednesday, June 24, 2020 3:49:55 PM
To: [email protected]
Subject: Re: [hpx-users] Possible HPX errors

Hi Mikael,

Thanks for your help!

The output is:
'runtime_mode' : 'console'

Best,
Nanmiao
________________________________
From: [email protected] <[email protected]> 
on behalf of Simberg Mikael <[email protected]>
Sent: Wednesday, June 24, 2020 3:07 AM
To: [email protected] <[email protected]>
Subject: Re: [hpx-users] Possible HPX errors


Hi Nanmiao,


Could you post the output of "./als_csv_instrumented --hpx:dump-config | grep 
runtime_mode" please?


Mikael

________________________________
From: [email protected] <[email protected]> 
on behalf of Nanmiao Wu <[email protected]>
Sent: Tuesday, June 23, 2020 8:31:36 PM
To: [email protected]
Subject: [hpx-users] Possible HPX errors

Hi all,

I am wondering do you have any suggestions for the "Assertion 
'get_runtime_distributed_ptr() != nullptr' failed: HPX(assertion_failure)" 
errors. I have put the details in the gist 
https://gist.github.com/NanmiaoWu/c8aedaf74c28d025bb0778a72ab198fe<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2FNanmiaoWu%2Fc8aedaf74c28d025bb0778a72ab198fe&data=02%7C01%7Cwnanmi1%40lsu.edu%7C9dc506c115a0407cf33208d819c5b687%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637287684282818106&sdata=xHuLQA0w7%2BqCiATlASB7gNEQZsuh%2F4LA5kU8OteOzuw%3D&reserved=0>

Thanks!

Best,
Nanmiao
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to