12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #include <mocks.h>
- #pragma starpu add_target "opencl"
- void my_task (int x, float a[x])
- __attribute__ ((task));
- static void my_task_cpu (int x, float a[x])
- __attribute__ ((task_implementation ("cpu", my_task)));
- static void my_task_opencl (int x, float a[x])
- __attribute__ ((task_implementation ("opencl", my_task)));
- static void
- my_task_cpu (int x, float a[x])
- {
- }
- #pragma starpu opencl my_task "test.cl" "kern" 1
- #pragma starpu opencl my_task_cpu \
- "test.cl" "kern" 1
- #pragma starpu opencl my_task_opencl "/dev/null" "kern" 1
- #pragma starpu opencl my_task_opencl "/does-not-exist/" "kern" 1
- #pragma starpu opencl my_task_opencl
- #pragma starpu opencl my_task_opencl 123 "kern" 1
- #pragma starpu opencl my_task_opencl "test.cl" 123 1
- #pragma starpu opencl my_task_opencl "test.cl" "kern" "a"
- #pragma starpu opencl my_task_opencl "test.cl" "kern" 1 "foo"
- void
- foo (void)
- {
- #pragma starpu opencl my_task_opencl "test.cl" "kern" 1
- }
|