-
Notifications
You must be signed in to change notification settings - Fork 22
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 #653 from conjure-cp/add-runsolver-support
Add runsolver support
- Loading branch information
Showing
12 changed files
with
130 additions
and
15 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
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,40 @@ | ||
#!/bin/bash | ||
|
||
# version as of 25 March 2024 | ||
# alas, none of the published releases compile correctly | ||
VERSION='3f923c08285bdc5186f995296e1c6bffa0588710' | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
DIR="$( cd "$( dirname "$0" )" && pwd )" | ||
|
||
export BIN_DIR=${BIN_DIR:-${HOME}/.local/bin} | ||
export PROCESSES=${PROCESSES:-1} | ||
|
||
OS=$(uname) | ||
|
||
if [ "$OS" == "Linux" ]; then | ||
rm -rf tmp-install-runsolver | ||
mkdir tmp-install-runsolver | ||
pushd tmp-install-runsolver | ||
git clone https://github.com/utpalbora/runsolver.git | ||
cd runsolver | ||
git checkout $VERSION | ||
cd src | ||
if make -j${PROCESSES} ; then | ||
echo "Built." | ||
else | ||
echo "Build failed, trying again with a local patch" | ||
echo "This might happen when building with an old version of libnuma-dev" | ||
patch runsolver.cc ${DIR}/runsolver.patch | ||
make -j${PROCESSES} | ||
fi | ||
cp runsolver ${BIN_DIR}/runsolver | ||
echo "runsolver executable is at ${BIN_DIR}/runsolver" | ||
ls -l ${BIN_DIR}/runsolver | ||
popd | ||
rm -rf tmp-install-runsolver | ||
else | ||
echo "Your OS is (according to uname): ${OS} -- runsolver only works on linux." | ||
fi |
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,13 @@ | ||
diff --git a/src/runsolver.cc b/src/runsolver.cc | ||
index f42c9a1..312c985 100644 | ||
--- a/src/runsolver.cc | ||
+++ b/src/runsolver.cc | ||
@@ -906,7 +906,7 @@ void numaInfo() { | ||
return; | ||
|
||
int nbNodes = numa_num_configured_nodes(); | ||
- long mem, memFree; | ||
+ long long mem, memFree; | ||
|
||
cout << "NUMA information:\n"; | ||
cout << " number of nodes: " << nbNodes << endl; |
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