From e7bdc16ee935463e6c814e6070b489af090f9a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Wed, 20 Mar 2024 19:24:06 -0600 Subject: [PATCH] Add instructions using Conda --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index c33f7932..6229ee95 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,15 @@ HDF5 install. The `-fno-frontend-optimize` disables some optimizations that may be harmful when building neural-fortran. +If you use Conda, the following instructions work: + +``` +conda create -n nf hdf5 +conda activate nf +fpm build --profile release --flag "-fno-frontend-optimize -I$CONDA_PREFIX/include -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib" +fpm test --profile release --flag "-fno-frontend-optimize -I$CONDA_PREFIX/include -L$CONDA_PREFIX/lib -Wl,-rpath -Wl,$CONDA_PREFIX/lib" +``` + #### Building in parallel mode If you use GFortran and want to run neural-fortran in parallel,