|
@@ -27,9 +27,9 @@ has a single implementation for CPU:
|
|
|
The code can then be compiled and linked with GCC and the flag <c>-fplugin</c>:
|
|
|
|
|
|
\verbatim
|
|
|
-$ gcc `pkg-config starpu-1.2 --cflags` hello-starpu.c \
|
|
|
- -fplugin=`pkg-config starpu-1.2 --variable=gccplugin` \
|
|
|
- `pkg-config starpu-1.2 --libs`
|
|
|
+$ gcc `pkg-config starpu-1.3 --cflags` hello-starpu.c \
|
|
|
+ -fplugin=`pkg-config starpu-1.3 --variable=gccplugin` \
|
|
|
+ `pkg-config starpu-1.3 --libs`
|
|
|
\endverbatim
|
|
|
|
|
|
The code can also be compiled without the StarPU C extension and will
|
|
@@ -156,7 +156,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
\verbatim
|
|
|
$ make hello_world
|
|
|
-cc $(pkg-config --cflags starpu-1.2) hello_world.c -o hello_world $(pkg-config --libs starpu-1.2)
|
|
|
+cc $(pkg-config --cflags starpu-1.3) hello_world.c -o hello_world $(pkg-config --libs starpu-1.3)
|
|
|
$ ./hello_world
|
|
|
Hello world
|
|
|
\endverbatim
|
|
@@ -234,7 +234,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
\verbatim
|
|
|
$ make hello_world
|
|
|
-cc $(pkg-config --cflags starpu-1.2) hello_world.c -o hello_world $(pkg-config --libs starpu-1.2)
|
|
|
+cc $(pkg-config --cflags starpu-1.3) hello_world.c -o hello_world $(pkg-config --libs starpu-1.3)
|
|
|
$ ./hello_world
|
|
|
Hello world (params = {1, 2.000000} )
|
|
|
\endverbatim
|
|
@@ -285,7 +285,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
\verbatim
|
|
|
$ make hello_world
|
|
|
-cc $(pkg-config --cflags starpu-1.2) hello_world.c -o hello_world $(pkg-config --libs starpu-1.2)
|
|
|
+cc $(pkg-config --cflags starpu-1.3) hello_world.c -o hello_world $(pkg-config --libs starpu-1.3)
|
|
|
$ ./hello_world
|
|
|
Hello world
|
|
|
Callback function (arg 42)
|
|
@@ -385,9 +385,9 @@ Finally, StarPU is shut down.
|
|
|
The program can be compiled and linked with GCC and the flag <c>-fplugin</c>:
|
|
|
|
|
|
\verbatim
|
|
|
-$ gcc `pkg-config starpu-1.2 --cflags` vector_scal.c \
|
|
|
- -fplugin=`pkg-config starpu-1.2 --variable=gccplugin` \
|
|
|
- `pkg-config starpu-1.2 --libs`
|
|
|
+$ gcc `pkg-config starpu-1.3 --cflags` vector_scal.c \
|
|
|
+ -fplugin=`pkg-config starpu-1.3 --variable=gccplugin` \
|
|
|
+ `pkg-config starpu-1.3 --libs`
|
|
|
\endverbatim
|
|
|
|
|
|
And voilà!
|
|
@@ -606,7 +606,7 @@ pointer.
|
|
|
|
|
|
\verbatim
|
|
|
$ make vector_scal
|
|
|
-cc $(pkg-config --cflags starpu-1.2) vector_scal.c -o vector_scal $(pkg-config --libs starpu-1.2)
|
|
|
+cc $(pkg-config --cflags starpu-1.3) vector_scal.c -o vector_scal $(pkg-config --libs starpu-1.3)
|
|
|
$ ./vector_scal
|
|
|
0.000000 3.000000 6.000000 9.000000 12.000000
|
|
|
\endverbatim
|
|
@@ -668,8 +668,8 @@ be compiled at run-time when calling the function
|
|
|
starpu_opencl_load_opencl_from_file().
|
|
|
|
|
|
\verbatim
|
|
|
-CFLAGS += $(shell pkg-config --cflags starpu-1.2)
|
|
|
-LDFLAGS += $(shell pkg-config --libs starpu-1.2)
|
|
|
+CFLAGS += $(shell pkg-config --cflags starpu-1.3)
|
|
|
+LDFLAGS += $(shell pkg-config --libs starpu-1.3)
|
|
|
CC = gcc
|
|
|
|
|
|
vector_scal: vector_scal.o vector_scal_cpu.o vector_scal_cuda.o vector_scal_opencl.o
|