1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- static void my_task (int foo, char *bar) __attribute__ ((task));
- static void my_task_cpu (int foo, float *bar)
- __attribute__ ((task_implementation ("cpu", my_task)));
- static void my_task_opencl (long foo, char *bar)
- __attribute__ ((task_implementation ("opencl", my_task)));
- static void my_task_nowhere (int foo, char *bar)
- __attribute__ ((task_implementation ("does-not-exist", my_task)));
- static void my_task_not_quite (int foo, char *bar)
- __attribute__ ((task_implementation ("cpu", my_task_nowhere)));
- static int foo
- __attribute__ ((task_implementation ("cpu", my_task)));
- static int bar
- __attribute__ ((task, unused));
- static int not_a_task __attribute__ ((unused));
- static void my_task_almost (int foo, char *bar)
- __attribute__ ((task_implementation ("cpu", not_a_task)));
- static void my_task_wrong_task_arg (int foo, char *bar)
- __attribute__ ((task_implementation ("cpu", 123)));
- static void my_task_wrong_target_arg (int foo, char *bar)
- __attribute__ ((task_implementation (123, my_task)));
- static void my_task_with_a_body (int foo, char *bar)
- __attribute__ ((task, unused));
- static void
- my_task_cpu (int foo, float *bar)
- {
- }
- static void
- my_task_opencl (long foo, char *bar)
- {
- }
- static void
- my_task_nowhere (int foo, char *bar)
- {
- }
- static void
- my_task_not_quite (int foo, char *bar)
- {
- }
- static void
- my_task_almost (int foo, char *bar)
- {
- }
- static void
- my_task_wrong_task_arg (int foo, char *bar)
- {
- }
- static void
- my_task_wrong_target_arg (int foo, char *bar)
- {
- }
- static void
- my_task_with_a_body (int foo, char *bar)
- {
- }
|