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 #2789 from STEllAR-GROUP/resource_partitioner
Resource partitioner
- Loading branch information
Showing
101 changed files
with
10,586 additions
and
4,748 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,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() | ||
|
Oops, something went wrong.