123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- extern void my_external_task (int foo, char *bar) __attribute__ ((task));
- 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));
- extern int my_task_not_void (int foo)
- __attribute__ ((task));
- void my_task_that_invokes_task (int x, char *y)
- __attribute__ ((task));
- void my_task_that_invokes_task_cpu (int x, char *y)
- __attribute__ ((task_implementation ("cpu", my_task_that_invokes_task)));
- 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)
- {
- }
- void
- my_task_that_invokes_task_cpu (int x, char *y)
- {
- my_external_task (x, y);
- }
|