Skip to content

Commit

Permalink
Merge pull request #2789 from STEllAR-GROUP/resource_partitioner
Browse files Browse the repository at this point in the history
Resource partitioner
  • Loading branch information
hkaiser committed Aug 23, 2017
2 parents 027ac11 + 78b4f27 commit 6c214b2
Show file tree
Hide file tree
Showing 101 changed files with 10,586 additions and 4,748 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Expand Up @@ -61,7 +61,7 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DerivePointerAlignment: false
ExperimentalAutoDetectBinPacking: true
FixNamespaceComments: false
# ForEachMacros: ['']
Expand Down
15 changes: 15 additions & 0 deletions CMakeLists.txt
Expand Up @@ -646,6 +646,21 @@ foreach(_scheduler ${HPX_WITH_THREAD_SCHEDULERS_UC})
unset(_all)
endforeach()

## Experimental settings
hpx_option(HPX_WITH_IO_POOL BOOL
"Disable internal IO thread pool, do not change if not absolutely necessary (default: ON)"
ON CATEGORY "Thread Manager" ADVANCED)
if(HPX_WITH_IO_POOL)
hpx_add_config_define(HPX_HAVE_IO_POOL)
endif()

hpx_option(HPX_WITH_TIMER_POOL BOOL
"Disable internal timer thread pool, do not change if not absolutely necessary (default: ON)"
ON CATEGORY "Thread Manager" ADVANCED)
if(HPX_WITH_TIMER_POOL)
hpx_add_config_define(HPX_HAVE_TIMER_POOL)
endif()

## AGAS related build options
hpx_option(HPX_WITH_AGAS_DUMP_REFCNT_ENTRIES BOOL
"Enable dumps of the AGAS refcnt tables to logs (default: OFF)"
Expand Down
188 changes: 148 additions & 40 deletions docs/manual/existing_performance_counters.qbk

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/CMakeLists.txt
Expand Up @@ -21,6 +21,7 @@ set(subdirs
quickstart
qt
random_mem_access
resource_partitioner
spell_check
startup_shutdown
thread_aware_timer
Expand Down
1 change: 0 additions & 1 deletion examples/balancing/os_thread_num.cpp
Expand Up @@ -23,7 +23,6 @@ using boost::program_options::value;

using hpx::lcos::local::barrier;

using hpx::threads::threadmanager_base;
using hpx::threads::pending;
using hpx::threads::thread_priority_normal;

Expand Down
41 changes: 41 additions & 0 deletions examples/resource_partitioner/CMakeLists.txt
@@ -0,0 +1,41 @@
# Copyright (c) 2017 Shoshana Jakobovits
#
# 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)

set(example_programs
oversubscribing_resource_partitioner
simple_resource_partitioner
)

set(oversubscribing_resource_partitioner_FLAGS DEPENDENCIES iostreams_component)
set(simple_resource_partitioner_FLAGS DEPENDENCIES iostreams_component)

foreach(example_program ${example_programs})
set(sources
${example_program}.cpp)

source_group("Source Files" FILES ${sources})

# add example executable
add_hpx_executable(${example_program}
SOURCES ${sources}
${${example_program}_FLAGS}
FOLDER "Examples/ResourcePartitioner")

if(MSVC)
add_definitions(-D_USE_MATH_DEFINES)
endif()

# add a custom target for this example
add_hpx_pseudo_target(examples.resource_partitioner.${example_program})

# make pseudo-targets depend on master pseudo-target
add_hpx_pseudo_dependencies(examples.resource_partitioner
examples.resource_partitioner.${example_program})

# add dependencies to pseudo-target
add_hpx_pseudo_dependencies(examples.resource_partitioner.${example_program}
${example_program}_exe)
endforeach()

0 comments on commit 6c214b2

Please sign in to comment.