Skip to content

Commit a7f73c7

Browse files
authored
Clarify "make" options and the need to repeat them in the install step
1 parent 96f8bb1 commit a7f73c7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@ Building OpenBLAS requires the following to be installed:
5454

5555
Simply invoking `make` (or `gmake` on BSD) will detect the CPU automatically.
5656
To set a specific target CPU, use `make TARGET=xxx`, e.g. `make TARGET=NEHALEM`.
57-
The full target list is in the file `TargetList.txt`. For building with `cmake`, the
58-
usual conventions apply, i.e. create a build directory either underneath the toplevel
59-
OpenBLAS source directory or separate from it, and invoke `cmake` there with the path
60-
to the source tree and any build options you plan to set.
57+
The full target list is in the file `TargetList.txt`, other build optionss are documented in Makefile.rule and
58+
can either be set there (typically by removing the comment character from the respective line), or used on the
59+
`make` command line.
60+
Note that when you run `make install` after building, you need to repeat all command line options you provided to `make`
61+
in the build step, as some settings like the supported maximum number of threads are automatically derived from the
62+
build host by default, which might not be what you want.
63+
For building with `cmake`, the usual conventions apply, i.e. create a build directory either underneath the toplevel
64+
OpenBLAS source directory or separate from it, and invoke `cmake` there with the path to the source tree and any
65+
build options you plan to set.
6166

6267
### Cross compile
6368

0 commit comments

Comments
 (0)