Browse Source

Allow to force to do not use -j as make argument

Close #828 (hopefully)
tags/v0.2.18^2
Jerome Robert 9 years ago
parent
commit
7aac0aff8e
2 changed files with 9 additions and 1 deletions
  1. +4
    -1
      Makefile.rule
  2. +5
    -0
      getarch.c

+ 4
- 1
Makefile.rule View File

@@ -112,7 +112,10 @@ NO_AFFINITY = 1
# NO_PARALLEL_MAKE = 1 # NO_PARALLEL_MAKE = 1


# Force number of make jobs. The default is the number of logical CPU of the host. # Force number of make jobs. The default is the number of logical CPU of the host.
# This is particularly useful when using distcc
# This is particularly useful when using distcc.
# A negative value will disable adding a -j flag to make, allowing to use a parent
# make -j value. This is usefull to call OpenBLAS make from an other project
# makefile
# MAKE_NB_JOBS = 2 # MAKE_NB_JOBS = 2


# If you would like to know minute performance report of GotoBLAS. # If you would like to know minute performance report of GotoBLAS.


+ 5
- 0
getarch.c View File

@@ -1013,7 +1013,12 @@ int main(int argc, char *argv[]){
#endif #endif


#ifdef MAKE_NB_JOBS #ifdef MAKE_NB_JOBS
#if MAKE_NB_JOBS > 0
printf("MAKE += -j %d\n", MAKE_NB_JOBS); printf("MAKE += -j %d\n", MAKE_NB_JOBS);
#else
// Let make use parent -j argument or -j1 if there
// is no make parent
#endif
#elif NO_PARALLEL_MAKE==1 #elif NO_PARALLEL_MAKE==1
printf("MAKE += -j 1\n"); printf("MAKE += -j 1\n");
#else #else


Loading…
Cancel
Save