-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fewer processes while building OpenBLAS
Closes #15716
- Loading branch information
Showing
8 changed files
with
42 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
deps/checksums/openblas-53e849f4fcae4363a64576de00e982722c7304f9.tar.gz/md5
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
deps/checksums/openblas-53e849f4fcae4363a64576de00e982722c7304f9.tar.gz/sha512
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
deps/checksums/openblas-a71e8c82f6a9f73093b631e5deab1e8da716b61f.tar.gz/md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a3850786d63f4af657d2aeb1baab5b20 |
1 change: 1 addition & 0 deletions
1
deps/checksums/openblas-a71e8c82f6a9f73093b631e5deab1e8da716b61f.tar.gz/sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0a3e7bb0660148207732a58d411bb492f674d57e6733eee1c293b749f00516efd9d47e62193a9ac480bbbddb0b25c5bd4a66eb9caa717a0d2906c9dcbb3c39fe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
commit 7aac0aff8ec22598734f5effa2fcc107c95c0655 | ||
diff --git a/Makefile.rule b/Makefile.rule | ||
index 847ee1c..6d0d8f4 100644 | ||
--- a/Makefile.rule | ||
+++ b/Makefile.rule | ||
@@ -112,7 +112,10 @@ NO_AFFINITY = 1 | ||
# NO_PARALLEL_MAKE = 1 | ||
|
||
# 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 | ||
|
||
# If you would like to know minute performance report of GotoBLAS. | ||
diff --git a/getarch.c b/getarch.c | ||
index f9c49e6..1e0b086 100644 | ||
--- a/getarch.c | ||
+++ b/getarch.c | ||
@@ -1013,7 +1013,12 @@ int main(int argc, char *argv[]){ | ||
#endif | ||
|
||
#ifdef MAKE_NB_JOBS | ||
+ #if MAKE_NB_JOBS > 0 | ||
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 | ||
printf("MAKE += -j 1\n"); | ||
#else |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
OPENBLAS_BRANCH=v0.2.15 | ||
OPENBLAS_SHA1=53e849f4fcae4363a64576de00e982722c7304f9 | ||
OPENBLAS_BRANCH=v0.2.17 | ||
OPENBLAS_SHA1=a71e8c82f6a9f73093b631e5deab1e8da716b61f |