Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
Proteo
Commits
d9c64f2b
Commit
d9c64f2b
authored
Nov 30, 2023
by
iker_martin
Browse files
Base directory is now obtained when performing a make
parent
8c3994e6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Codes/Makefile
View file @
d9c64f2b
...
...
@@ -30,6 +30,9 @@ $(BIN) : $(BUILD_DIR)/$(BIN)
# Actual target of the binary - depends on all .o files.
$(BUILD_DIR)/$(BIN)
:
$(OBJ)
$(MCC)
$(C_FLAGS)
$^
-o
$@
$(LD_FLAGS)
@
echo
-n
"dir=
\"
"
>
$(BUILD_DIR)
/config.txt
@
realpath
-z
$$
(
echo
"
$
$(pwd)
/.."
)
>>
$(BUILD_DIR)
/config.txt
@
echo
"
\"
"
>>
$(BUILD_DIR)
/config.txt
# Include all .d files
# .d files are used for knowing the dependencies of each source file
...
...
@@ -45,7 +48,7 @@ $(BUILD_DIR)/%.o : %.c
$(MCC)
$(C_FLAGS)
$(DEF)
-MMD
-c
$<
-o
$@
clean
:
-
rm
$(BUILD_DIR)
/
$(BIN)
$(OBJ)
$(DEP)
-
rm
$(BUILD_DIR)
/
$(BIN)
$(BUILD_DIR)
/config.txt
$(OBJ)
$(DEP)
clear
:
-
rm
-rf
$(BUILDDIR)
...
...
Exec/BashScripts/createInitialNodelist.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/malleability_benchmark"
#FIXME Obtain from another way
# Runs in a given current directory all .ini files
# Parameter 1(Optional) - Amount of executions per file. Must be a positive number
#====== Do not modify these values =======
...
...
Exec/BashScripts/getNumPNeeded.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/malleability_benchmark"
#FIXME Obtain from another way
# Runs in a given current directory all .ini files
# Parameter 1(Optional) - Amount of executions per file. Must be a positive number
#====== Do not modify these values =======
...
...
Exec/CheckRun.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/tmp/malleability_benchmark/"
partition
=
"P1"
# Checks if all the runs in the current working directory performed under a
...
...
@@ -18,6 +17,8 @@ partition="P1"
# Must be a positive integer.
#====== Do not modify the following values =======
scriptDir
=
"
$(
dirname
"
$0
"
)
"
source
$scriptDir
/../Codes/build/config.txt
codeDir
=
"Codes/"
execDir
=
"Exec/"
ResultsDir
=
"Results/"
...
...
Exec/Extrae/trace_worker.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/malleability_benchmark"
scriptDir
=
"
$(
dirname
"
$0
"
)
"
source
$scriptDir
/../../Codes/build/config.txt
codeDir
=
"/Codes/build"
export
EXTRAE_CONFIG_FILE
=
extrae.xml
...
...
Exec/multipleRuns.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/tmp/malleability_benchmark/"
# Creates a directory with all possible and valid combinations of configuration files
# that can be created from a given complex configuration file.
# Parameter 1: Complex configuration file name.
# Parameter 2: Common output name of the output configuration files. It will be appended an index to each of them.
#====== Do not modify these values =======
scriptDir
=
"
$(
dirname
"
$0
"
)
"
source
$scriptDir
/../Codes/build/config.txt
codeDir
=
"Codes/"
execDir
=
"Exec/"
ResultsDir
=
"Results/"
...
...
Exec/runAll.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/tmp/malleability_benchmark"
partition
=
"P1"
exclude
=
"c00,c01,c02"
...
...
@@ -9,6 +8,8 @@ exclude="c00,c01,c02"
# Parameter 2(Optional) - Maximum amount of time in seconds needed by a single execution. Default value is 0, which indicates infinite time. Must be a positive integer.
#====== Do not modify these values =======
scriptDir
=
"
$(
dirname
"
$0
"
)
"
source
$scriptDir
/../Codes/build/config.txt
codeDir
=
"/Codes/build"
execDir
=
"/Exec"
ResultsDir
=
"/Results"
...
...
Exec/singleRun.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/tmp/malleability_benchmark"
partition
=
"P1"
exclude
=
"c00,c01,c02"
...
...
@@ -14,6 +13,8 @@ exclude="c00,c01,c02"
# Parameter 6(Optional): Path where the output files should be saved.
#====== Do not modify these values =======
scriptDir
=
"
$(
dirname
"
$0
"
)
"
source
$scriptDir
/../Codes/build/config.txt
codeDir
=
"/Codes/build"
execDir
=
"/Exec"
ResultsDir
=
"/Results"
...
...
Exec/singleRunCostum.sh
View file @
d9c64f2b
#!/bin/bash
dir
=
"/home/martini/malleability_benchmark"
cores
=
20
# Executes a given configuration file. This script can be called with Slurm commands to
...
...
@@ -12,6 +11,8 @@ cores=20
# Parameter 5(Optional): Path where the output files should be saved.
#====== Do not modify these values =======
scriptDir
=
"
$(
dirname
"
$0
"
)
"
source
$scriptDir
/../Codes/build/config.txt
codeDir
=
"/Codes/build"
execDir
=
"/Exec"
ResultsDir
=
"/Results"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment