From cf4711474db2b31ee8a3866ce87221c5a27c159f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Thu, 18 Apr 2024 09:50:42 -0600 Subject: [PATCH] Add instructions using Conda (#172) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 20d34f6..a43d8a4 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,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,