Skip to content

Instantly share code, notes, and snippets.

#include <boost/phoenix.hpp>
int main()
{
using boost::phoenix::arg_names::arg1;
using boost::phoenix::arg_names::arg2;
using boost::phoenix::arg_names::arg3;
using boost::phoenix::local_names::_a;
using boost::phoenix::local_names::_b;
using boost::phoenix::lambda;
This file has been truncated, but you can view the full file.
TACC: Starting up job 2877659
TACC: Setting up parallel environment for MVAPICH2+mpispawn.
TACC: Starting parallel tasks...
/agas{locality#0/total}/count/decrement_credit,1,8.145300,[s],17
/agas{locality#1/total}/count/decrement_credit,1,8.009955,[s],5
/agas{locality#2/total}/count/decrement_credit,1,8.008736,[s],5
/agas{locality#3/total}/count/decrement_credit,1,7.989132,[s],7
/agas{locality#4/total}/count/decrement_credit,1,8.008141,[s],5
/agas{locality#5/total}/count/decrement_credit,1,8.000879,[s],7
/agas{locality#6/total}/count/decrement_credit,1,8.005112,[s],5
double run_parallel_algorithm(std::size_t n)
{
std::vector<double> d = make_vector(n);
hpx::util::high_resolution_timer t;
std::size_t cores = hpx::get_os_thread_count();
std::size_t chunk_size = (d.size() + cores - 1) / cores;
std::size_t count = n + chunk_size - 1;
std::vector<hpx::future<void>> chunks;
PARTITION NODES SOCKETS CORES THREAD GRES NODES(A/I/O/T)
siegfried* 2 2 8 2 gpu:k40m:2 0/2/0/2
siegfried* 1 2 8 2 gpu:k20c:2 0/1/0/1
siegfried* 1 2 8 2 gpu:k20c:1,mic:knc:1 0/1/0/1
whistler 20 2 2 1 (null) 0/20/0/20
accel 1 2 6 1 gpu:k20c:5 0/1/0/1
accel 2 2 12 2 (null) 0/2/0/2
cell 0 0 0 0 (null) 0/0/0/0
knc 1 2 8 2 mic:knc:2 0/1/0/1
intel 1 1 1 1 (null) 0/1/0/1
@sithhell
sithhell / A.cpp
Last active February 6, 2018 12:34
Outcome ODR
#include "A.hpp"
namespace A
{
A::result foo()
{
return 5;
}
}