-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
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
Running hybrid HPX/OMP code #13
Comments
Pinging @hkaiser as well. |
When I switch to hpx initialization with
It happens here: https://github.com/ddemidov/amgcl/blob/master/amgcl/backend/builtin.hpp#L301-L306. I've tried to reproduce the error with #include <iostream>
#include <hpx/hpx_main.hpp>
#include <hpx/include/parallel_for_each.hpp>
//---------------------------------------------------------------------------
int main() {
std::vector<int> x(10);
int offset = 1;
#pragma omp parallel for
for(int i = 0; i < 10; ++i)
x[i] = offset + i;
hpx::parallel::for_each(
hpx::parallel::par,
x.begin(), x.end(),
[](int v) {
std::cout << v << "\n";
});
} It fails as well, but the error is different:
|
The "__kmpc_for_static_init_8" is simply one of the loop functions I have yet to implement. There is a function call for each different type of the iterator. The second, I am less familiar with, as icpc uses the runtime differently than clang. The loops are next on my todo list, so it should be done this week. Further compatibility with icc is a bit further down on the list, but I'll take a look at it once I finish the loops. |
a85879b does help in some way. Namely, the following code works:
The output is:
The following however does not work (the difference is in HPX initialization method):
The output is:
One thing that is somewhat suspicious is that the line
is present in the second output but is missing from the first.
The text was updated successfully, but these errors were encountered: