#include /* Task declaration. */ static void my_task (int x) __attribute__ ((task)); /* Definition of the CPU implementation of `my_task'. */ static void my_task (int x) { printf ("Hello, world! With x = %d\n", x); } int main () { /* Initialize StarPU. */ #pragma starpu initialize /* Do an asynchronous call to `my_task'. */ my_task (42); /* Wait for the call to complete. */ #pragma starpu wait /* Terminate. */ #pragma starpu shutdown return 0; }