Commit 5450b33e authored by iker_martin's avatar iker_martin
Browse files

Minor corrections

parent c6b3344d
#Ignore ini files
*.ini
#Ignore pkl files
*.pkl
#Ignore out files
*.out
#Ignore build files
/Codes/build/
......@@ -7,4 +11,4 @@
/Codes/SAM/build
#Ignore Results files
/Results/*
/Results/**/
......@@ -230,7 +230,7 @@ void MAM_Check_configuration() {
MPI_Allreduce(&mall->internode_group, &global_internodes, 1, MPI_INT, MPI_MAX, mall->comm);
if((MAM_Contains_strat(MAM_SPAWN_STRATEGIES, MAM_STRAT_SPAWN_MULTIPLE, NULL)
|| MAM_Contains_strat(MAM_SPAWN_STRATEGIES, MAM_STRAT_SPAWN_PARALLEL, NULL) )
&& global_internodes) { // Remove internode MPI_COMM_WORLDs
&& global_internodes && mall->numP > mall->numC) { // Ensure when shrinking there are no internodes WORLDS left
MAM_Set_key_configuration(MAM_SPAWN_METHOD, MAM_SPAWN_BASELINE, NULL);
}
......
......@@ -87,7 +87,6 @@ void parallel_strat_children_hypercube(Spawn_data spawn_data, Spawn_ports *spawn
int actual_step;
int groups, init_nodes;
MPI_Comm newintracomm, *spawn_comm = NULL;
// TODO Comprobar si entrar en spawn solo si groups < numSources
qty_comms = 0;
group_id = mall->gid;
......
......@@ -5,7 +5,7 @@
#====== Do not modify these values =======
partition=$1
hostlist=$(sinfo -hs --partition $partition | sed 's/ */:/g' | cut -d ':' -f5)
hostlist=$(sinfo -hs --partition $partition | sed 's/ */:/g' | rev | cut -d ':' -f1 | rev)
basic_node=$(scontrol show hostname $hostlist | paste -d, -s | cut -d ',' -f1)
cores=$(scontrol show node $basic_node | grep CPUTot | cut -d '=' -f3 | cut -d ' ' -f1)
echo "$cores"
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