Skip to content

Commit 04a1927

Browse files
authored
[SYCLomatic] Add note about LLVM_PARALLEL_LINK_JOBS (#768)
Signed-off-by: Cai, Justin <[email protected]>
1 parent 0a66244 commit 04a1927

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ cmake -G Ninja -DCMAKE_INSTALL_PREFIX=%PATH_TO_C2S_INSTALL_FOLDER% -DCMAKE_BUIL
101101
ninja install-c2s
102102
```
103103

104-
Note: For build system with 16G or less memory, recommend to use less than 5 threads for compilation, you may meet out of memory issue when more than 4 threads used for compilation.
104+
Note: For build system with 16G or less memory, to avoid out of memory issues,
105+
it is recommended to add the option `-DLLVM_PARALLEL_LINK_JOBS=1` in the CMake step and use 4 or less total parallel jobs when building SYCLomatic by invoking `ninja` with the option `-j4`:
105106
```
106107
ninja -j4 install-c2s
107108
```

0 commit comments

Comments
 (0)