diff --git a/docs/texinfo/chapters/configuration.texi b/docs/texinfo/chapters/configuration.texi index e2dd255248187fd116694299323ac2fba595137e..522d3926a869ca2294f070c364505b45d388d063 100644 --- a/docs/texinfo/chapters/configuration.texi +++ b/docs/texinfo/chapters/configuration.texi @@ -53,14 +53,14 @@ access to options through a user-friendly Qt interface (required Example of configuration using the command line @example -cmake ~/chameleon/ -DCMAKE_BUILD_TYPE=Debug \ - -DCMAKE_INSTALL_PREFIX=~/install \ - -DCHAMELEON_USE_CUDA=ON \ - -DCHAMELEON_USE_MAGMA=ON \ - -DCHAMELEON_USE_MPI=ON \ - -DBLA_VENDOR=Intel10_64lp \ - -DSTARPU_DIR=~/install/starpu-1.1 \ - -DCHAMELEON_USE_FXT=ON +cmake ~/chameleon/ -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=~/install \ + -DCHAMELEON_USE_CUDA=ON \ + -DCHAMELEON_USE_MAGMA=ON \ + -DCHAMELEON_USE_MPI=ON \ + -DBLA_VENDOR=Intel10_64lp \ + -DSTARPU_DIR=~/install/starpu-1.1 \ + -DCHAMELEON_USE_FXT=ON @end example You can get the full list of options with @option{-L[A][H]} options of @@ -262,7 +262,7 @@ where to find the header files of libraries @item it is also possible to specify headers and library directories separately, example @example - cmake <path to SOURCE_DIR> \ + cmake <path to SOURCE_DIR> \ -DSTARPU_INCDIR=path/to/libstarpu/include/starpu/1.1 \ -DSTARPU_LIBDIR=path/to/libstarpu/lib @end example diff --git a/docs/texinfo/chapters/using.texi b/docs/texinfo/chapters/using.texi index 30b4d4ee32b3fccc6ebfdd8cc27b8f0d419c3fb4..08de86260f0ae7bee7af6bfdcd22a1c60ce21ddf 100644 --- a/docs/texinfo/chapters/using.texi +++ b/docs/texinfo/chapters/using.texi @@ -163,11 +163,11 @@ gcc -I/home/yourname/install/chameleon/include -o main.o -c main.c Now if you want to link your application with CHAMELEON static libraries, you could do: @example -gcc main.o -o main \ +gcc 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.1 -Wl,--no-as-needed -lmkl_intel_lp64 \ +/home/yourname/install/chameleon/lib/libcoreblas.a \ +-lstarpu-1.1 -Wl,--no-as-needed -lmkl_intel_lp64 \ -lmkl_sequential -lmkl_core -lpthread -lm -lrt @end example As you can see in this example, we also link with dynamic libraries @@ -194,8 +194,8 @@ to dynamic libraries with @option{-L} option and you give the name of libraries with @option{-l} option like this: @example gcc main.o -o main \ --L/home/yourname/install/chameleon/lib \ --lchameleon -lchameleon_starpu -lcoreblas \ +-L/home/yourname/install/chameleon/lib \ +-lchameleon -lchameleon_starpu -lcoreblas \ -lstarpu-1.1 -Wl,--no-as-needed -lmkl_intel_lp64 \ -lmkl_sequential -lmkl_core -lpthread -lm -lrt @end example @@ -224,19 +224,19 @@ gfortran -o main.o -c main.c Static linking example: @example -gfortran main.o -o main \ +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.1 -Wl,--no-as-needed -lmkl_intel_lp64 \ +/home/yourname/install/chameleon/lib/libcoreblas.a \ +-lstarpu-1.1 -Wl,--no-as-needed -lmkl_intel_lp64 \ -lmkl_sequential -lmkl_core -lpthread -lm -lrt @end example Dynamic linking example: @example gfortran main.o -o main \ --L/home/yourname/install/chameleon/lib \ --lchameleon -lchameleon_starpu -lcoreblas \ +-L/home/yourname/install/chameleon/lib \ +-lchameleon -lchameleon_starpu -lcoreblas \ -lstarpu-1.1 -Wl,--no-as-needed -lmkl_intel_lp64 \ -lmkl_sequential -lmkl_core -lpthread -lm -lrt @end example