Skip to content
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

Add note about RAM issues to README.md #282

Merged
merged 4 commits into from
Dec 28, 2020
Merged

Conversation

jvdp1
Copy link
Member

@jvdp1 jvdp1 commented Dec 27, 2020

This is a note on how to avoid RAM issues during compilation on "low RAM" computers.

Fixes #217 and #281

Copy link
Member

@LKedward LKedward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks @jvdp1 👍

Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggested instructions lead to the following error:

❯ cmake -B __build
-- The Fortran compiler identification is GNU 10.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/bin/f95 - skipped
-- Checking whether /usr/bin/f95 supports Fortran 90
-- Checking whether /usr/bin/f95 supports Fortran 90 - yes
-- Performing Test f18errorstop
-- Performing Test f18errorstop - Success
-- Performing Test f03rank
-- Performing Test f03rank - Success
-- Performing Test f03real128
-- Performing Test f03real128 - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/awvwgk/projects/src/git/stdlib/__build
❯ cmake --build __build -DCMAKE_MAXIMUM_RANK=4
Unknown argument -DCMAKE_MAXIMUM_RANK=4
Usage: cmake --build <dir> [options] [-- [native-options]]
Options:
  <dir>          = Project binary directory to be built.
  --parallel [<jobs>], -j [<jobs>]
                 = Build in parallel using the given number of jobs. 
                   If <jobs> is omitted the native build tool's 
                   default number is used.
                   The CMAKE_BUILD_PARALLEL_LEVEL environment variable
                   specifies a default parallel level when this option
                   is not given.
  --target <tgt>..., -t <tgt>... 
                 = Build <tgt> instead of default targets.
  --config <cfg> = For multi-configuration tools, choose <cfg>.
  --clean-first  = Build target 'clean' first, then build.
                   (To clean only, use --target 'clean'.)
  --verbose, -v  = Enable verbose output - if supported - including
                   the build commands to be executed. 
  --             = Pass remaining options to the native tool.

Co-authored-by: Sebastian Ehlert <[email protected]>
Copy link
Member

@milancurcic milancurcic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you. This note will be helpful. I added a suggestion to reword things a bit for clarity.

@jvdp1
Copy link
Member Author

jvdp1 commented Dec 28, 2020

Great, thank you. This note will be helpful. I added a suggestion to reword things a bit for clarity.

Thank you @milancurcic for your suggestions. I accepted them. They are more general than mine, and make them still valid, even if PR #283 is accepted later.

@milancurcic
Copy link
Member

Thank you @jvdp1!

@milancurcic milancurcic merged commit 6d01ec9 into fortran-lang:master Dec 28, 2020
@jvdp1 jvdp1 deleted the readme branch December 22, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to build stdlib on low memory computer Very slow building of stdlib, and high memory usage
4 participants