-
Notifications
You must be signed in to change notification settings - Fork 184
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
Very slow building of stdlib, and high memory usage #217
Comments
You could also do
which does not require root access. The submodule |
Thanks for information. Note that my machine is not a big workstation, but not ridiculous too: a 4 cores Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz |
Concerning fypp, under Ubuntu I didn't need $ pip3 install fypp but I needed adding its path to PATH: $ PATH="${PATH}:/home/mylogin/.local/bin" before building. |
In my machine I couldn't compile the library since the SO killed the process due the high amount of memory needed at same point. There's something odd in the compilation process of
|
@14NGiestas Try limiting the maximum rank of generated procedures. You can go as low as 4. For example, from stdlib directory:
My 2014 laptop can't build the default rank (15) either, but with |
Thank you @milancurcic. I think this option should be mentioned to warn future contributers with low end machines, in the readme. |
I agree--we'll fix that. |
I have access to workstations with many hundreds GB of RAM, so I tested RAM usage with the default configuration. gfortran 10.1 (and gfortran 8.3) requires approx 26 GB during stdlib_stats_moment.f90 compilation and produces ~1.8 GB assembler code file in /tmp |
Thank you @zmiimz for these detals. Did you check these numbers when the number of ranks is limited to 7 (instead of 15)? Would it be more manageable? A (temporary) solution could be to set the default number of ranks at 7, and to add an option to increase the number of ranks until 15 when the user wants it. |
Yes, with cmake .. -DCMAKE_MAXIMUM_RANK=7 it looks definitely better and requires <2 GB of RAM. Cannot say about exact RAM usage ( I am detecting this just visually in htop) |
I have git cloned the repository in a Fedora 32 virtual machine.
I have encountered two problems, one minor, one critical:
$ pip install fypp
but I obtained that error:It was easily fixed by using sudo:
$ sudo pip install fypp
$ cmake -B build
, then$ cmake --build build
but thestdlib_experimental_stats_moment.f90
gives a lot of warnings (hundreds ?) and is freezing the build process:I have waited several minutes, but it is still frozen. The compiler is burning the CPU.
The gfortran version is:
The text was updated successfully, but these errors were encountered: