Skip to content

Commit 35b8447

Browse files
authored
Merge pull request #283 from BerkeleyLab/doc-compiler-flags
doc(README.md): update compiler flags
2 parents 6d750b6 + 9b3fa9d commit 35b8447

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The remainder of this section contains commands for building Fiats with a recent
7777
##### LLVM (`flang-new`)
7878
Testing Fiats with LLVM `flang-new` version 20 or later with the following command should report that all tests pass:
7979
```
80-
fpm test --compiler flang-new --flag "-O3"
80+
fpm test --compiler flang-new --flag "-cpp -O3"
8181
```
8282
With LLVM 19, add `-mmlir -allow-assumed-rank` to the `--flag` argument.
8383
With LLVM 21, it should be possible to automatically parallelize batch inferences on central processing units (CPUs).
@@ -86,7 +86,7 @@ For example, run [concurrent-inferences](./example/concurrent-inferences.f90) in
8686
fpm run \
8787
--example concurrent-inferences \
8888
--compiler flang-new \
89-
--flag "-O3 -fopenmp -fdo-concurrent-to-openmp=host" \
89+
--flag "-cpp -O3 -fopenmp -fdo-concurrent-to-openmp=host" \
9090
-- --network model.json
9191
```
9292
where `model.json` must be a neural network in the [JSON] format used by Fiats and the companion [nexport] package.
@@ -96,7 +96,7 @@ Work is under way to automatically parallelize training on CPUs and to offload i
9696
##### NAG (`nagfor`)
9797
With `nagfor` 7.2 Build 7235 or later, the following command builds Fiats and reports that all tests pass:
9898
```
99-
fpm test --compiler nagfor --flag -fpp
99+
fpm test --compiler nagfor --flag "-fpp -O3"
100100
```
101101

102102
#### Partially Supported Compilers
@@ -123,7 +123,7 @@ Please submit an issue if you would like to use `ifx` and require hidden layers
123123
##### _Experimental:_ Automatic offloading of `do concurrent` to GPUs
124124
This capability is under development with the goal to facilitate automatic GPU offloading via the following command:
125125
```
126-
fpm test --compiler ifx --profile release --flag "-fopenmp-target-do-concurrent -qopenmp -fopenmp-targets=spir64 -O3"
126+
fpm test --compiler ifx --profile release --flag "-fpp -fopenmp-target-do-concurrent -qopenmp -fopenmp-targets=spir64 -O3"
127127
```
128128

129129
#### Under Development
@@ -169,7 +169,7 @@ Project is up to date
169169
"outputs" : ["saturated mixing ratio"]
170170
},
171171
"training data file names": {
172-
"path" : "dates-20101001-2011076",
172+
"path" : "fiats-training-data",
173173
"inputs prefix" : "training_input-image-",
174174
"outputs prefix" : "training_output-image-",
175175
"infixes" : ["000001", "000002", "000003", "000004", "000005", "000006", "000007", "000008", "000009", "000010"]

0 commit comments

Comments
 (0)