File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,7 +112,10 @@ NO_AFFINITY = 1
112112# NO_PARALLEL_MAKE = 1
113113
114114# Force number of make jobs. The default is the number of logical CPU of the host.
115- # This is particularly useful when using distcc
115+ # This is particularly useful when using distcc.
116+ # A negative value will disable adding a -j flag to make, allowing to use a parent
117+ # make -j value. This is usefull to call OpenBLAS make from an other project
118+ # makefile
116119# MAKE_NB_JOBS = 2
117120
118121# If you would like to know minute performance report of GotoBLAS.
Original file line number Diff line number Diff line change @@ -1013,7 +1013,12 @@ int main(int argc, char *argv[]){
10131013#endif
10141014
10151015#ifdef MAKE_NB_JOBS
1016+ #if MAKE_NB_JOBS > 0
10161017 printf ("MAKE += -j %d\n" , MAKE_NB_JOBS );
1018+ #else
1019+ // Let make use parent -j argument or -j1 if there
1020+ // is no make parent
1021+ #endif
10171022#elif NO_PARALLEL_MAKE == 1
10181023 printf ("MAKE += -j 1\n" );
10191024#else
You can’t perform that action at this time.
0 commit comments