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
05131486
Commit
05131486
authored
Nov 04, 2022
by
iker_martin
Browse files
Ya se puede instalar especificamente con slurm con make install_slurm
parent
8ca50713
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
05131486
#Ignore ini files
*.ini
#Ignore build files
/Codes/build/
Codes/Makefile
View file @
05131486
...
...
@@ -2,9 +2,11 @@ CC = gcc
MCC
=
mpicc
C_FLAGS_ALL
=
-Wfatal-errors
-Wall
-Wextra
-Wpedantic
-Wconversion
-Wshadow
C_FLAGS
=
-Wall
LD_FLAGS
=
-lm
-lslurm
-pthread
LD_FLAGS
=
-lm
-pthread
DEF
=
.PHONY
:
clean clear
.PHONY
:
clean clear install install_slurm
# Final binary
BIN
=
a.out
...
...
@@ -40,12 +42,18 @@ $(BUILD_DIR)/$(BIN) : $(OBJ)
# the same name as the .o file.
$(BUILD_DIR)/%.o
:
%.c
mkdir
-p
$
(
@D
)
$(MCC)
$(C_FLAGS_ALL)
-MMD
-c
$<
-o
$@
$(MCC)
$(C_FLAGS_ALL)
$(DEF)
-MMD
-c
$<
-o
$@
clean
:
-
rm
$(BUILD_DIR)
/
$(BIN)
$(OBJ)
$(DEP)
clear
:
-
rm
-rf
$(BUILDDIR)
install
:
install
:
$(BIN)
echo
"Done"
# Builds target with slurm
install_slurm
:
LD_FLAGS += -lslurm
install_slurm
:
DEF += -DUSE_SLURM
install_slurm
:
install
Codes/malleability/spawn_methods/ProcessDist.c
View file @
05131486
...
...
@@ -7,7 +7,7 @@
#include <mpi.h>
#include "ProcessDist.h"
#define USE_SLURM
//
#define USE_SLURM
//--------------PRIVATE DECLARATIONS---------------//
...
...
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