We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From this example code:
#include <hpx/hpx_init.hpp> int hpx_main(int argc, char* argv[]) { printf( "Hello World!\n"); return hpx::finalize(); } int main(int argc, char* argv[]) { hpx::init(argc, argv); }
I expect there to be one instance of hpx_main called and the output to be:
Hello World!
When run with mpirun -np 2, the output is
Hello World! Hello World!
I compiled the above code using cmake file:
project(hello CXX) find_package(HPX REQUIRED NO_CMAKE_PACKAGE_REGISTRY) add_hpx_executable( hello DEPENDENCIES SOURCES main.cpp )
and executed it with mpirun -np 2 ./hello
... Please describe your environment
The text was updated successfully, but these errors were encountered:
@dmarce1 Was HPX built with MPI enabled?
Sorry, something went wrong.
Yes
Please see #4035 for a possible solution and let us know if this fixes your issue.
This fixes it. Thanks.
Successfully merging a pull request may close this issue.
Expected Behavior
From this example code:
I expect there to be one instance of hpx_main called and the output to be:
Actual Behavior
When run with mpirun -np 2, the output is
Steps to Reproduce the Problem
I compiled the above code using cmake file:
and executed it with mpirun -np 2 ./hello
Specifications
... Please describe your environment
The text was updated successfully, but these errors were encountered: