matmul_pragma2.c 305 B

1234567891011
  1. /* Use the `task' attribute only when StarPU's GCC plug-in
  2. is available. */
  3. #ifdef STARPU_GCC_PLUGIN
  4. # define __task __attribute__ ((task))
  5. #else
  6. # define __task
  7. #endif
  8. static void matmul (const float *A, const float *B, float *C,
  9. unsigned nx, unsigned ny, unsigned nz) __task;