|
@@ -26,7 +26,7 @@ that @code{pkg-config} can find it. For example if StarPU was installed in
|
|
|
@code{$prefix_dir}:
|
|
|
|
|
|
@example
|
|
|
-% PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$prefix_dir/lib/pkgconfig
|
|
|
+$ PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$prefix_dir/lib/pkgconfig
|
|
|
@end example
|
|
|
|
|
|
The flags required to compile or link against StarPU are then
|
|
@@ -36,8 +36,8 @@ with the @code{libstarpu} package. Similar packages are provided for
|
|
|
@code{libstarpumpi} and @code{libstarpufft}.}:
|
|
|
|
|
|
@example
|
|
|
-% pkg-config --cflags starpu-1.0 # options for the compiler
|
|
|
-% pkg-config --libs starpu-1.0 # options for the linker
|
|
|
+$ pkg-config --cflags starpu-1.0 # options for the compiler
|
|
|
+$ pkg-config --libs starpu-1.0 # options for the linker
|
|
|
@end example
|
|
|
|
|
|
Make sure that @code{pkg-config --libs starpu-1.0} actually produces some output
|
|
@@ -51,7 +51,7 @@ It is also necessary to set the variable @code{LD_LIBRARY_PATH} to
|
|
|
locate dynamic libraries at runtime.
|
|
|
|
|
|
@example
|
|
|
-% LD_LIBRARY_PATH=$prefix_dir/lib:$LD_LIBRARY_PATH
|
|
|
+$ LD_LIBRARY_PATH=$prefix_dir/lib:$LD_LIBRARY_PATH
|
|
|
@end example
|
|
|
|
|
|
When using a Makefile, the following lines can be added to set the
|
|
@@ -73,10 +73,9 @@ Basic examples using StarPU are built in the directory
|
|
|
@code{vector_scal}.
|
|
|
|
|
|
@example
|
|
|
-% ./examples/basic_examples/vector_scal
|
|
|
+$ ./examples/basic_examples/vector_scal
|
|
|
BEFORE: First element was 1.000000
|
|
|
AFTER: First element is 3.140000
|
|
|
-%
|
|
|
@end example
|
|
|
|
|
|
When StarPU is used for the first time, the directory
|
|
@@ -115,13 +114,13 @@ between them.
|
|
|
To enable OpenCL, you need either to disable CUDA when configuring StarPU:
|
|
|
|
|
|
@example
|
|
|
-% ./configure --disable-cuda
|
|
|
+$ ./configure --disable-cuda
|
|
|
@end example
|
|
|
|
|
|
or when running applications:
|
|
|
|
|
|
@example
|
|
|
-% STARPU_NCUDA=0 ./application
|
|
|
+$ STARPU_NCUDA=0 ./application
|
|
|
@end example
|
|
|
|
|
|
OpenCL will automatically be started on any device not yet used by
|
|
@@ -130,5 +129,5 @@ enable CUDA on 2 devices, and OpenCL on the 2 other devices by doing
|
|
|
so:
|
|
|
|
|
|
@example
|
|
|
-% STARPU_NCUDA=2 ./application
|
|
|
+$ STARPU_NCUDA=2 ./application
|
|
|
@end example
|