1 // Copyright (c) 2013 Thomas Heller 2 // 3 // Distributed under the Boost Software License, Version 1.0. (See accompanying 4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6 #include <hpx/hpx.hpp> 7 #include <hpx/hpx_main.hpp> 8 #include <hpx/util/batch_environment.hpp> 9 10 #include <iostream> 11 #include <string> 12 #include <vector> 13 main()14int main() 15 { 16 std::vector<std::string> nodelist; 17 hpx::util::batch_environment env(nodelist, hpx::get_config(), true); 18 19 for (std::string const& s: nodelist) 20 std::cout << s << "\n"; 21 22 return 0; 23 } 24