Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3087 from STEllAR-GROUP/fixing_3054
Fixing assertion in default_distribution_policy
- Loading branch information
Showing
4 changed files
with
127 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright (c) 2017 Hartmut Kaiser | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <hpx/hpx_main.hpp> | ||
#include <hpx/include/components.hpp> | ||
#include <hpx/util/lightweight_test.hpp> | ||
|
||
#include <vector> | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
struct test_server : hpx::components::component_base<test_server> | ||
{ | ||
test_server(int) {} | ||
}; | ||
|
||
typedef hpx::components::component<test_server> server_type; | ||
HPX_REGISTER_COMPONENT(server_type, test_server); | ||
|
||
void test_bulk_new() | ||
{ | ||
auto locs = hpx::find_all_localities(); | ||
|
||
std::vector<hpx::id_type> ids = | ||
hpx::new_<test_server[]>(hpx::default_layout(locs), 10, 42).get(); | ||
|
||
hpx::future<std::vector<hpx::id_type>> ids_f = | ||
hpx::new_<test_server[]>(hpx::default_layout(locs), 10, 42); | ||
} | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
int main() | ||
{ | ||
test_bulk_new(); | ||
|
||
return 0; | ||
} | ||
|