Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
80c601c7
Commit
80c601c7
authored
Nov 16, 2014
by
PRUVOST Florent
Browse files
update texinfo users_guide
parent
73367a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/texinfo/chapters/configuration.texi
View file @
80c601c7
...
...
@@ -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
...
...
docs/texinfo/chapters/using.texi
View file @
80c601c7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment