Commit 00fd51f0 authored by iker_martin's avatar iker_martin
Browse files

Minor changes in scripts

parent e472a657
...@@ -14,7 +14,7 @@ endif ...@@ -14,7 +14,7 @@ endif
DEF = -DUSE_MAL_SLURM=$(USE_MAL_SLURM) -DUSE_MAL_BARRIERS=$(USE_MAL_BARRIERS) -DUSE_MAL_DEBUG=$(USE_MAL_DEBUG) DEF = -DUSE_MAL_SLURM=$(USE_MAL_SLURM) -DUSE_MAL_BARRIERS=$(USE_MAL_BARRIERS) -DUSE_MAL_DEBUG=$(USE_MAL_DEBUG)
.PHONY : clean clear install install_slurm .PHONY : clean clear install
# Final binary # Final binary
BIN = a.out BIN = a.out
...@@ -33,13 +33,13 @@ OBJ = $(C_FILES:%.c=$(BUILD_DIR)/%.o) ...@@ -33,13 +33,13 @@ OBJ = $(C_FILES:%.c=$(BUILD_DIR)/%.o)
# Gcc will create these .d files containing dependencies. # Gcc will create these .d files containing dependencies.
DEP = $(OBJ:%.o=%.d) DEP = $(OBJ:%.o=%.d)
# Default configuration file
$(CONFIG) : $(BUILD_DIR)/$(CONFIG)
# Default target named after the binary. # Default target named after the binary.
$(BIN) : $(BUILD_DIR)/$(BIN) $(BIN) : $(BUILD_DIR)/$(BIN)
# Default configuration file
$(CONFIG) : $(BUILD_DIR)/$(CONFIG)
$(BUILD_DIR)/$(CONFIG) : $(BUILD_DIR)/$(CONFIG) :
mkdir -p $(@D) @mkdir -p $(@D)
@ echo -n "dir=\"" > $(BUILD_DIR)/$(CONFIG) @ echo -n "dir=\"" > $(BUILD_DIR)/$(CONFIG)
@ realpath -z $$(echo "$$(pwd)/..") | tr -d '\0' >> $(BUILD_DIR)/$(CONFIG) @ realpath -z $$(echo "$$(pwd)/..") | tr -d '\0' >> $(BUILD_DIR)/$(CONFIG)
@ echo "\"" >> $(BUILD_DIR)/$(CONFIG) @ echo "\"" >> $(BUILD_DIR)/$(CONFIG)
...@@ -58,14 +58,16 @@ $(BUILD_DIR)/$(BIN) : $(OBJ) ...@@ -58,14 +58,16 @@ $(BUILD_DIR)/$(BIN) : $(OBJ)
# The -MMD flags additionaly creates a .d file with # The -MMD flags additionaly creates a .d file with
# the same name as the .o file. # the same name as the .o file.
$(BUILD_DIR)/%.o : %.c $(BUILD_DIR)/%.o : %.c
mkdir -p $(@D) @mkdir -p $(@D)
$(MCC) $(C_FLAGS) $(DEF) -MMD -c $< -o $@ $(MCC) $(C_FLAGS) $(DEF) -MMD -c $< -o $@
clean: clean:
-rm $(BUILD_DIR)/$(BIN) $(BUILD_DIR)/$(CONFIG) $(OBJ) $(DEP) -rm $(BUILD_DIR)/$(BIN) $(BUILD_DIR)/$(CONFIG) $(OBJ) $(DEP)
clear: clear:
-rm -rf $(BUILDDIR) -rm -rf $(BUILD_DIR)
all: install
install: $(BIN) $(CONFIG) install: $(BIN) $(CONFIG)
echo "Done" echo "Done"
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#SBATCH -p P1 #SBATCH -p P1
#SBATCH -N 1 #SBATCH -N 1
#SBATCH --exclude=n00
partition='P1' partition='P1'
...@@ -22,7 +21,6 @@ then ...@@ -22,7 +21,6 @@ then
fi fi
echo "MPICH" echo "MPICH"
#export HYDRA_DEBUG=1
mpirun --version mpirun --version
numP=$(bash $dir$execDir/BashScripts/getNumPNeeded.sh $configFile 0) numP=$(bash $dir$execDir/BashScripts/getNumPNeeded.sh $configFile 0)
initial_nodelist=$(bash $dir$execDir/BashScripts/createInitialNodelist.sh $numP $cores $nodelist) initial_nodelist=$(bash $dir$execDir/BashScripts/createInitialNodelist.sh $numP $cores $nodelist)
......
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