Skip to content

Commit 75a614b

Browse files
committed
add note about RAM issues
1 parent b0ab3bb commit 75a614b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ cmake --build build
5858
cmake --build build --target test
5959
```
6060

61+
62+
6163
### Build with make
6264

6365
Alternatively, you can build using provided Makefiles:
@@ -66,6 +68,25 @@ Alternatively, you can build using provided Makefiles:
6668
make -f Makefile.manual
6769
```
6870

71+
## Memory issues during compilation
72+
73+
Some issues can be encountered during compilation on low RAM computers.
74+
These issues are due to the high number of procedures generated by the preprocessor.
75+
They can be avoided by limiting the maximum rank of generated procedures, as follows with `CMake`:
76+
77+
```sh
78+
cmake -B build
79+
80+
cmake --build build -DCMAKE_MAXIMUM_RANK=4
81+
82+
cmake --build build --target test
83+
```
84+
or as follows with `make`:
85+
86+
```sh
87+
make -f Makefile.manual FYPPFLAGS=-DMAXRANK=4
88+
```
89+
6990
## Documentation
7091

7192
Documentation is a work in progress (see issue #4) but is currently available at https://stdlib.fortran-lang.org.

0 commit comments

Comments
 (0)