From 07cb80b16ef5e9180d8cc5c12e4c1900aa53d0cf Mon Sep 17 00:00:00 2001 From: Florent Pruvost <florent.pruvost@inria.fr> Date: Wed, 13 Sep 2017 10:55:57 +0200 Subject: [PATCH] comment fortran linking part --- doc/orgmode/chapters/using.org | 66 +++++++++++++++++----------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/doc/orgmode/chapters/using.org b/doc/orgmode/chapters/using.org index efedc47d0..e0e094c0f 100644 --- a/doc/orgmode/chapters/using.org +++ b/doc/orgmode/chapters/using.org @@ -75,39 +75,39 @@ export LD_LIBRARY_PATH=path/to/libs:path/to/chameleon/lib #+end_src -*** Build a Fortran program with Chameleon :noexport: - - Chameleon provides a Fortran interface to user functions. Example: - #+begin_src - call morse_version(major, minor, patch) !or - call MORSE_VERSION(major, minor, patch) - #+end_src - - Build and link are very similar to the C case. - - Compilation example: - #+begin_src - gfortran -o main.o -c main.f90 - #+end_src - - Static linking example: - #+begin_src - gfortran main.o -o main \ - /home/yourname/install/chameleon/lib/libchameleon.a \ - /home/yourname/install/chameleon/lib/libchameleon_starpu.a \ - /home/yourname/install/chameleon/lib/libcoreblas.a \ - -lstarpu-1.2 -Wl,--no-as-needed -lmkl_intel_lp64 \ - -lmkl_sequential -lmkl_core -lpthread -lm -lrt - #+end_src - - Dynamic linking example: - #+begin_src - gfortran main.o -o main \ - -L/home/yourname/install/chameleon/lib \ - -lchameleon -lchameleon_starpu -lcoreblas \ - -lstarpu-1.2 -Wl,--no-as-needed -lmkl_intel_lp64 \ - -lmkl_sequential -lmkl_core -lpthread -lm -lrt - #+end_src +# *** Build a Fortran program with Chameleon :noexport: +# +# Chameleon provides a Fortran interface to user functions. Example: +# #+begin_src +# call morse_version(major, minor, patch) !or +# call MORSE_VERSION(major, minor, patch) +# #+end_src +# +# Build and link are very similar to the C case. +# +# Compilation example: +# #+begin_src +# gfortran -o main.o -c main.f90 +# #+end_src +# +# Static linking example: +# #+begin_src +# gfortran main.o -o main \ +# /home/yourname/install/chameleon/lib/libchameleon.a \ +# /home/yourname/install/chameleon/lib/libchameleon_starpu.a \ +# /home/yourname/install/chameleon/lib/libcoreblas.a \ +# -lstarpu-1.2 -Wl,--no-as-needed -lmkl_intel_lp64 \ +# -lmkl_sequential -lmkl_core -lpthread -lm -lrt +# #+end_src +# +# Dynamic linking example: +# #+begin_src +# gfortran main.o -o main \ +# -L/home/yourname/install/chameleon/lib \ +# -lchameleon -lchameleon_starpu -lcoreblas \ +# -lstarpu-1.2 -Wl,--no-as-needed -lmkl_intel_lp64 \ +# -lmkl_sequential -lmkl_core -lpthread -lm -lrt +# #+end_src ** Using Chameleon executables -- GitLab