Added HPX::auto_wrap_main option #6804
Conversation
|
Can one of the admins verify this patch? |
hkaiser
left a comment
There was a problem hiding this comment.
Could you add a test verifying this functionality, please? Perhaps here: https://github.com/STEllAR-GROUP/hpx/tree/master/tests/unit/init?
|
Some of the CIs are also failing because of an unused argument (https://app.circleci.com/pipelines/github/STEllAR-GROUP/hpx/18976/workflows/1db954bb-64fe-4130-81a8-15edc2925fbd/jobs/435313). |
Yes, I will do that. |
I will check those failures and fix them. |
|
After thinking about this a bit more - we either should make this the default and make sure that the existing code still works (the one that has the |
Fixed it. |
I have made it default with the exisiting code still working. |
…he need of including <hpx/hpx_main.hpp> header file in the main function to start HPX runtime when HPX::wrap_main is linked Signed-off-by: Bharath <bharath.kollanur@gmail.com>
…used argument error Signed-off-by: Bharath <bharath.kollanur@gmail.com>
It looks like that many tests are now failing. So making it the default wasn't a good idea after all :/ |
…:auto_wrap_main option Signed-off-by: Bharath <bharath.kollanur@gmail.com>
Signed-off-by: Bharath <bharath.kollanur@gmail.com>
…nctionality in the hpx_wrap.cpp which is defined to the target the with the help of target_compile_definitions in the CMakelists.txt file Signed-off-by: Bharath <bharath.kollanur@gmail.com>
hkaiser
left a comment
There was a problem hiding this comment.
Very nice, LGTM, thanks!
|
@kollanur please disregard my last comment about using |
ok professor, got it. |
…N_STRING Signed-off-by: Bharath <bharath.kollanur@gmail.com>
Added the
HPX::auto_wrap_mainCMake target that excludes the need of including<hpx/hpx_main.hpp>header file in the main function to start HPX runtime whenHPX::wrap_mainis linked.