-
Notifications
You must be signed in to change notification settings - Fork 10
Documentation: Replace flang-new with flang
#171
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
base: main
Are you sure you want to change the base?
Changes from all commits
63ad950
5f6f104
354389b
b1643a8
570f7e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -88,10 +88,11 @@ Running the demonstration tests | |
| With the Fortran Package Manager (`fpm`) installed, please set the `demo` | ||
| subdirectory as your present working directory in a shell. Then run the | ||
| demonstration test suite using the command below for your compiler. | ||
| With `fpm` versions lower than 0.13.0, replace `flang` with `flang-new` below. | ||
|
|
||
| |Vendor | Version(s) Tested | Example shell command | | ||
| |Vendor | Version(s) Tested | Example shell command | | ||
| |-------|-------------------------|--------------------------------------------------| | ||
| |LLVM | 20-21 | `fpm test --compiler flang-new --flag "-O3"` | | ||
| |LLVM | 20-21 | `fpm test --compiler flang --flag "-O3"` | | ||
| |GCC | 13-15<sup>1</sup> | `fpm test --compiler gfortran --profile release` | | ||
| |NAG | 7.2 Build 7235 | `fpm test --compiler nagfor --flag "-O3 -fpp"` | | ||
| |Intel | 2025.2.1 Build 20250806 | `fpm test --compiler ifx --flag "-fpp -O3"` | | ||
|
|
@@ -114,7 +115,7 @@ Please run following command in a `bash` or `zsh` shell with Julienne's root | |
| directory as your present working directory: | ||
| ``` | ||
| fpm run scaffold \ | ||
| --compiler flang-new \ | ||
| --compiler flang \ # with `fpm` 0.12.0 or older, replace "flang" with "flang-new" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bash comments (as suggested by the Suggest instead putting the comment before or after the command. |
||
| -- --json-file demo/test-suite.json \ | ||
| --suite-path demo/test | ||
| ``` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ LLVM Flang 22 supports the native Fortran parallel programming model used by | |
| Julienne: features that enable launching multiple images, which are instances | ||
| of a program. As of this writing, "Flang 22" refers to the main branch of | ||
| [llvm-project](https://github.com/llvm/llvm-project), which when built from | ||
| source, responds to `flang-new --version` with text that includes `22.0.0git`. | ||
| source, responds to `flang --version` with text that includes `22.0.0git`. | ||
|
Comment on lines
6
to
+8
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flang 22 is released, this final sentence should probably just be deleted. |
||
|
|
||
| To launch multi-image runs, Flang generates calls to the Parallel Runtime | ||
| Interface for Fortran [(PRIF)](https://go.lbl.gov/prif). Using these features | ||
|
|
@@ -33,12 +33,12 @@ cd .. | |
| where angular brackets denote variables to replace with your chosen value. | ||
|
|
||
| ### Build Caffeine and GASNet | ||
| An `.install.sh` invocation of the form below _should_ install Caffeine and | ||
| An `install.sh` invocation of the form below _should_ install Caffeine and | ||
| GASNet in `<caffeine-install-path>/lib`. | ||
| ```bash | ||
| git clone -b 0.6.0 https://github.com/BerkeleyLab/caffeine.git | ||
| git clone -b 0.7.0 https://github.com/BerkeleyLab/caffeine.git | ||
| cd caffeine | ||
| FC=<llvm-install-path>/bin/flang-new \ | ||
| FC=<llvm-install-path>/bin/flang \ | ||
| CC=<llvm-install-path>/bin/clang \ | ||
| CXX=<llvm-install-path>/bin/clang++ \ | ||
| ./install.sh --prefix=<caffeine-install-path> | ||
|
|
@@ -53,11 +53,12 @@ find build -name libcaffeine.a | |
| Then move `libcaffeine.a` to the `<caffeine-install-path>/lib` directory. | ||
|
|
||
| ### Build and Test Julienne | ||
| With `fpm` versions lower than 0.13.0, replace `flang` with `flang-new` below. | ||
| ``` | ||
| git clone -b 3.2.0 https://github.com/BerkeleyLab/julienne.git | ||
| git clone -b 3.6.1 https://github.com/BerkeleyLab/julienne.git | ||
| cd julienne | ||
| fpm test \ | ||
| --compiler flang-new \ | ||
| --compiler flang \ | ||
| --flag "-O3 -DHAVE_MULTI_IMAGE_SUPPORT -fcoarray" \ | ||
| --link-flag "-lcaffeine -lgasnet-smp-seq -L<caffeine-install-path>/lib" | ||
| ``` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.