void scalar_product(
std::vector<int> const& v,
int c,
vector& result) {
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <syslog.h> | |
static void start_skeleton_daemon() | |
{ |
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
[tkwon@bob1 bin]$ ./benchmark_partition_copy --vector_size 100000000 --hpx:threads 16 | |
-------------- Benchmark Config -------------- | |
seed : 1498419087 | |
vector_size : 100000000 | |
test_count : 10 | |
os threads : 16 | |
---------------------------------------------- | |
* Preparing Benchmark... | |
* Running Benchmark... |
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
unowned pointer/reference -> raw pointer | |
master ownership -> unique_ptr |
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
[tkwon@bob1 hpx_build]$ ./bin/benchmark_partition_copy --vector_size 100000000 --hpx:threads 16 --test_count 10 --iterator_tag forward | |
-------------- Benchmark Config -------------- | |
seed : 1499537609 | |
vector_size : 100000000 | |
iterator_tag : forward | |
test_count : 10 | |
os threads : 16 | |
---------------------------------------------- | |
* Preparing Benchmark... |
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
[tkwon@bob1 hpx_build]$ ./bin/benchmark_unique_copy --vector_size 1000000 --hpx:threads 16 --test_count 10 --iterator_tag forward --random_range 1 | |
-------------- Benchmark Config -------------- | |
seed : 1499787616 | |
vector_size : 1000000 | |
random_range : 1 | |
iterator_tag : forward | |
test_count : 10 | |
os threads : 16 | |
---------------------------------------------- |
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
// VS http://en.cppreference.com/w/cpp/algorithm/rotate | |
template <class ForwardIt> | |
ForwardIt rotate(ForwardIt first, ForwardIt n_first, ForwardIt last) | |
{ | |
if(first == n_first) return last; | |
if(n_first == last) return first; | |
ForwardIt next = n_first; | |
do { |
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
[tkwon@bob1 hpx_build]$ make -j16 tests.performance.parallel_algorithms.local_.benchmark_partition | |
[ 9%] Built target hpx_init | |
[100%] Built target hpx | |
Scanning dependencies of target benchmark_partition_exe | |
[100%] Building CXX object tests/performance/parallel_algorithms/local/CMakeFiles/benchmark_partition_exe.dir/benchmark_partition.cpp.o | |
In file included from /home/tkwon/hpx/hpx/lcos/local/packaged_continuation.hpp:27:0, | |
from /home/tkwon/hpx/hpx/lcos/future.hpp:1483, | |
from /home/tkwon/hpx/hpx/runtime/actions/trigger.hpp:11, | |
from /home/tkwon/hpx/hpx/runtime/actions/continuation.hpp:14, | |
from /home/tkwon/hpx/hpx/runtime/actions/action_invoke_no_more_than.hpp:12, |
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
[tkwon@bob1 qqqq]$ module list | |
Currently Loaded Modulefiles: | |
1) cmake/3.8.1 3) clang/3.8.1 | |
2) hwloc/1.11.3 4) boost/1.60.0-clang3.8.1 | |
[tkwon@bob1 qqqq]$ !cm | |
cmake -DHPX_WITH_TOOLS=ON ~/hpx | |
-- The CXX compiler identification is Clang 3.8.1 | |
-- The C compiler identification is Clang 3.8.1 | |
-- Check for working CXX compiler: /opt/mn/clang/3.8.1/bin/clang++ | |
-- Check for working CXX compiler: /opt/mn/clang/3.8.1/bin/clang++ -- works |
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
template <typename RandIter1, typename RandIter2, | |
typename Comp, typename Proj1, typename Proj2, | |
HPX_CONCEPT_REQUIRES_( | |
hpx::traits::is_random_access_iterator<RandIter1>::value && | |
hpx::traits::is_random_access_iterator<RandIter2>::value)> | |
std::pair<RandIter1, RandIter2> | |
find_half_point(RandIter1 first1, RandIter1 last1, | |
RandIter2 first2, RandIter2 last2, Comp& comp, | |
Proj1& proj1, Proj2& proj2) | |
{ |