-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bug reported by a nobody. #431
Comments
|
f18 is written in modern C++, it requires quite some memory to be built. However, it requires nowhere near 32 GB. I actually just checked that I could build it on a machine with the following config:
I did not use any cmake options but the one to indicate the path to LLVM (LLVM_DIR). The peak memory usage I measured was around 7 GB when compiling I do not know which compiler version you are using. If you keep having memory issue, consider trying with another compiler/compiler version. I do not know which linker you are using nor when your f18 build is crashing, but if you are running into memory exhaustion during link-time, please consider using a different linker such as lld from LLVM or GNU gold. |
|
The f18 parser is composed at compiler build time via C++ template expansion that elaborates and combines parsers for each of the parts of Fortran syntax. This technique yields a fast and correct parser for Fortran programs, but is memory-intensive to build with current C++ compilers. We have chosen to prioritize Fortran compilation correctness and performance. |
|
The f18 parser is complete today for Fortran 2018 and OpenMP 4.5, so I would not expect the grammar to grow until the next revisions of those standards arrive and are implemented. |
|
It might be worth checking f18's build time and build memory requirements again in your environment; I've put some time into mitigating these costs. |
No description provided.
The text was updated successfully, but these errors were encountered: