-
Notifications
You must be signed in to change notification settings - Fork 40
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 #1061 from milroy/comparison-update
Planner comparison and update
- Loading branch information
Showing
22 changed files
with
682 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Look for Valgrind headers and binary. | ||
# | ||
# Variables defined by this module: | ||
# Valgrind_FOUND System has valgrind | ||
# Valgrind_INCLUDE_DIR where to find valgrind/memcheck.h, etc. | ||
# Valgrind_EXECUTABLE the valgrind executable. | ||
# This module appends to config.h so t5000-valgrind.t succeeds. | ||
# We may need to change this behavior once remaining autotools | ||
# files are removed. | ||
|
||
find_path(Valgrind_INCLUDE_DIR valgrind HINTS ${Valgrind_INCLUDE_PATH}) | ||
find_program(Valgrind_EXECUTABLE NAMES valgrind PATH ${Valgrind_BINARY_PATH}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Valgrind DEFAULT_MSG Valgrind_INCLUDE_DIR Valgrind_EXECUTABLE) | ||
|
||
if(Valgrind_FOUND) | ||
file(APPEND config.h "#define HAVE_VALGRIND 1\n") | ||
endif() |
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
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
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,49 @@ | ||
/*****************************************************************************\ | ||
* Copyright 2024 Lawrence Livermore National Security, LLC | ||
* (c.f. AUTHORS, NOTICE.LLNS, LICENSE) | ||
* | ||
* This file is part of the Flux resource manager framework. | ||
* For details, see https://github.com/flux-framework. | ||
* | ||
* SPDX-License-Identifier: LGPL-3.0 | ||
\*****************************************************************************/ | ||
|
||
extern "C" { | ||
#if HAVE_CONFIG_H | ||
#include "config.h" | ||
#endif | ||
} | ||
|
||
#include "planner_internal_tree.hpp" | ||
|
||
bool scheduled_point_t::operator== (const scheduled_point_t &o) const | ||
{ | ||
if (point_rb != o.point_rb) | ||
return false; | ||
if (resource_rb != o.resource_rb) | ||
return false; | ||
if (at != o.at) | ||
return false; | ||
if (in_mt_resource_tree != o.in_mt_resource_tree) | ||
return false; | ||
if (new_point != o.new_point) | ||
return false; | ||
if (ref_count != o.ref_count) | ||
return false; | ||
if (remaining != o.remaining) | ||
return false; | ||
if (scheduled != o.scheduled) | ||
return false; | ||
|
||
return true; | ||
} | ||
|
||
bool scheduled_point_t::operator!= (const scheduled_point_t &o) const | ||
{ | ||
return !operator == (o); | ||
} | ||
|
||
|
||
/* | ||
* vi: ts=4 sw=4 expandtab | ||
*/ |
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
Oops, something went wrong.