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: hpx-users-boun...@stellar-group.org <hpx-users-boun...@stellar-group.org> on behalf of Simberg Mikael <simbe...@cscs.ch> Sent: Thursday, June 25, 2020 2:01 AM To: hpx-users@stellar-group.org <hpx-users@stellar-group.org> 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%7Cbb09def794a64b0fcdcc08d818ddf9fe%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637286688983522520&sdata=ZNB3Z8qK7PnwwaARaxtlcRVi0qEjdG93jd6bym5bNPs%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: hpx-users-boun...@stellar-group.org <hpx-users-boun...@stellar-group.org> on behalf of Nanmiao Wu <wnan...@lsu.edu> Sent: Wednesday, June 24, 2020 3:49:55 PM To: hpx-users@stellar-group.org Subject: Re: [hpx-users] Possible HPX errors Hi Mikael, Thanks for your help! The output is: 'runtime_mode' : 'console' Best, Nanmiao ________________________________ From: hpx-users-boun...@stellar-group.org <hpx-users-boun...@stellar-group.org> on behalf of Simberg Mikael <simbe...@cscs.ch> Sent: Wednesday, June 24, 2020 3:07 AM To: hpx-users@stellar-group.org <hpx-users@stellar-group.org> 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: hpx-users-boun...@stellar-group.org <hpx-users-boun...@stellar-group.org> on behalf of Nanmiao Wu <wnan...@lsu.edu> Sent: Tuesday, June 23, 2020 8:31:36 PM To: hpx-users@stellar-group.org 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%7Cbb09def794a64b0fcdcc08d818ddf9fe%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C637286688983522520&sdata=DeAf9PrW7HD7n6dqdMvSNdYdH5bKXa%2B7qQAYQ1P9hqs%3D&reserved=0> Thanks! Best, Nanmiao
_______________________________________________ hpx-users mailing list hpx-users@stellar-group.org https://mail.cct.lsu.edu/mailman/listinfo/hpx-users