| @@ -81,6 +81,9 @@ VERSION = 0.2.6 | |||||
| # and OS. However, the performance is low. | # and OS. However, the performance is low. | ||||
| # NO_AVX = 1 | # NO_AVX = 1 | ||||
| # Don't use parallel make. | |||||
| # NO_PARALLEL_MAKE = 1 | |||||
| # If you would like to know minute performance report of GotoBLAS. | # If you would like to know minute performance report of GotoBLAS. | ||||
| # FUNCTION_PROFILE = 1 | # FUNCTION_PROFILE = 1 | ||||
| @@ -65,6 +65,10 @@ ifeq ($(DEBUG), 1) | |||||
| GETARCH_FLAGS += -g | GETARCH_FLAGS += -g | ||||
| endif | endif | ||||
| ifndef NO_PARALLEL_MAKE | |||||
| NO_PARALLEL_MAKE=0 | |||||
| endif | |||||
| GETARCH_FLAGS += -DNO_PARALLEL_MAKE=$(NO_PARALLEL_MAKE) | |||||
| # This operation is expensive, so execution should be once. | # This operation is expensive, so execution should be once. | ||||
| ifndef GOTOBLAS_MAKEFILE | ifndef GOTOBLAS_MAKEFILE | ||||
| export GOTOBLAS_MAKEFILE = 1 | export GOTOBLAS_MAKEFILE = 1 | ||||
| @@ -804,8 +804,12 @@ int main(int argc, char *argv[]){ | |||||
| #endif | #endif | ||||
| #endif | #endif | ||||
| #if NO_PARALLEL_MAKE==1 | |||||
| printf("MAKE += -j 1\n"); | |||||
| #else | |||||
| #ifndef OS_WINDOWS | #ifndef OS_WINDOWS | ||||
| printf("MAKE += -j %d\n", get_num_cores()); | printf("MAKE += -j %d\n", get_num_cores()); | ||||
| #endif | |||||
| #endif | #endif | ||||
| break; | break; | ||||