You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/tutorials/local-build.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
## Local build of ReactantExtra
1
+
#[Local build of ReactantExtra](@ref local-build)
2
2
3
-
The script in this directory can be used to do local builds of ReactantExtra, including debug builds.
3
+
In the `deps/` subdirectory of the Reactant repository there is a script to do local builds of ReactantExtra, including debug builds.
4
4
5
-
###Requirements
5
+
## Requirements
6
6
7
7
* Julia. If you don't have it already, you can obtain it from the [official Julia website](https://julialang.org/downloads/)
8
8
* A reasonably recent C/C++ compiler, ideally GCC 12+.
@@ -12,20 +12,20 @@ The script in this directory can be used to do local builds of ReactantExtra, in
12
12
Binutils `ld` won't work, don't even try using it.
13
13
You can obtain `mold` for your platform from the [latest `rui314/mold` release](https://github.com/rui314/mold/releases/latest) and put the `mold` executable in `PATH`
14
14
15
-
###Building
15
+
## Building
16
16
17
-
At a high-level, you can run the commands
17
+
At a high-level, after you `cd` to the `deps/` directory you can run the commands
18
18
19
-
```
20
-
julia --project -e 'using Pkg; Pkg.instantiate()' # needed only the first time to install Julia's deps
19
+
```bash
20
+
julia --project -e 'using Pkg; Pkg.instantiate()'# needed only the first time to install dependencies for this script
21
21
julia -O0 --color=yes --project build_local.jl
22
22
```
23
23
24
-
There are a few of options you may want to use.
24
+
There are a few of options you may want to use to tweak the build.
25
25
For more information run the command (what's show below may not be up to date, run the command locally to see the options available to you):
If you try to do the build on certain systems where there are in place restrictions on the number of processes or memory that your user can use (for example login node of clusters), you may have to limit the number of parallel jobs used by Bazel.
63
63
By default Bazel would try to use the maximum number of CPUs available on the system, if you need reduce that pass the `--jobs JOBS` flag option.
64
-
The Bazel server may be terminated abruptly if using too much memory (e.g. if concurrent compiler processes are cumulatively using too much memory), also in this case reducing the number of parallel jobs may be beneficial.
64
+
The Bazel server may be terminated abruptly if using too much memory (e.g. if concurrent compiler processes are cumulatively using a large amount of memory), also in this case reducing the number of parallel jobs may be beneficial.
65
65
66
66
### CUDA debug build
67
67
68
-
A CUDA debug build (`--debug --backend=cuda`) requires a recent GCC compiler and also a fast linker (see requirements above).
69
-
You can tell GCC to use either `lld` or `mold` with `--extraopt '--linkopt=-fuse-ld=Lld'` or `--extraopt '--linkopt=-fuse-ld=mold'` respectively.
70
-
NOTE: the option `-fuse-ld=mold` was added in GCC 12, if you're trying to use an older version you can have some luck by making a symlink `ld` pointing to `mold` in `PATH`, with higher precendce than Binutils `ld`.
68
+
A CUDA debug build (`--debug --backend=cuda`) requires a recent GCC compiler (at least v12) and also a fast linker (see requirements above).
69
+
You can tell GCC to use either `lld` or `mold` with `--extraopt '--linkopt=-fuse-ld=lld'` or `--extraopt '--linkopt=-fuse-ld=mold'` respectively.
70
+
NOTE: the option `-fuse-ld=mold` was added in GCC 12, if you're trying to use an older version you can have some luck by making a symlink named `ld` pointing to `mold` in `PATH`, with higher precendce than Binutils `ld`.
0 commit comments