Commit d9c64f2b authored by iker_martin's avatar iker_martin
Browse files

Base directory is now obtained when performing a make

parent 8c3994e6
......@@ -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)
......
#!/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 =======
......
#!/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 =======
......
#!/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/"
......
#!/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
......
#!/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/"
......
#!/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"
......
#!/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"
......
#!/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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment