1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include <starpu.h>
- #ifndef __COMPLEX_INTERFACE_H
- #define __COMPLEX_INTERFACE_H
- struct starpu_complex_interface
- {
- double *real;
- double *imaginary;
- int nx;
- };
- void starpu_complex_data_register(starpu_data_handle_t *handle, unsigned home_node, double *real, double *imaginary, int nx);
- double *starpu_complex_get_real(starpu_data_handle_t handle);
- double *starpu_complex_get_imaginary(starpu_data_handle_t handle);
- int starpu_complex_get_nx(starpu_data_handle_t handle);
- #define STARPU_COMPLEX_GET_REAL(interface) (((struct starpu_complex_interface *)(interface))->real)
- #define STARPU_COMPLEX_GET_IMAGINARY(interface) (((struct starpu_complex_interface *)(interface))->imaginary)
- #define STARPU_COMPLEX_GET_NX(interface) (((struct starpu_complex_interface *)(interface))->nx)
- #endif
|