@@ -69,24 +69,18 @@ Compilers tested include:
69
69
70
70
#### Building in serial mode
71
71
72
- ```
73
- fpm build
74
- ```
75
-
76
- By default, without specifying the build profile, fpm will build neural-fortran
77
- using the debug compiler flags, and without optimization.
78
- To build optimized code, build with the release profile:
79
-
80
- ```
81
- fpm build --profile release
82
- ```
83
-
84
- If you're using GFortran, make sure to also pass an additional flag:
72
+ With gfortran, the following will create an optimized build of neural-fortran:
85
73
86
74
```
87
- fpm build --profile release --flag "-fno-frontend-optimize"
75
+ fpm build \
76
+ --profile release \
77
+ --flag "-fno-frontend-optimize -I$HDF5INC -L$HDF5LIB"
88
78
```
89
79
80
+ HDF5 is now a required dependency, so you have to provide it to fpm.
81
+ The above command assumes that the ` HDF5INC ` and ` HDF5LIB ` environment
82
+ variables are set to the include and library paths, respectively, of your
83
+ HDF5 install.
90
84
The ` -fno-frontend-optimize ` disables some optimizations that may be harmful
91
85
when building neural-fortran.
92
86
@@ -98,13 +92,18 @@ Once installed, use the compiler wrappers `caf` and `cafrun` to build and execut
98
92
in parallel, respectively:
99
93
100
94
```
101
- fpm build --compiler caf --profile release --flag "-fno-frontend-optimize"
95
+ fpm build \
96
+ --compiler caf \
97
+ --profile release \
98
+ --flag "-fno-frontend-optimize -I$HDF5INC -L$HDF5LIB"
102
99
```
103
100
104
101
#### Testing with fpm
105
102
106
103
```
107
- fpm test
104
+ fpm test \
105
+ --profile release \
106
+ --flag "-fno-frontend-optimize -I$HDF5INC -L$HDF5LIB"
108
107
```
109
108
110
109
For the time being, you need to specify the same compiler flags to ` fpm test `
0 commit comments