Skip to content

Commit c44723f

Browse files
authored
[install] fix macos make fixed number of cores (#5614)
1 parent 8d5f441 commit c44723f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/install/compile/macos-compile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ mkdir build && cd build
267267
#### 9. 使用以下命令来编译:
268268
269269
```
270-
make -j4
270+
make -j$(sysctl -n hw.ncpu)
271271
```
272272
273273
#### 10. 编译成功后进入`/paddle/build/python/dist`目录下找到生成的`.whl`包:

docs/install/compile/macos-compile_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ mkdir build && cd build
271271
#### 9. Compile with the following command:
272272
273273
```
274-
make -j4
274+
make -j$(sysctl -n hw.ncpu)
275275
```
276276
277277
#### 10. After compiling successfully, go to the `/paddle/build/python/dist `directory and find the generated `.whl` package:

0 commit comments

Comments
 (0)