mod_interface.f90 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ! StarPU --- Runtime system for heterogeneous multicore architectures.
  2. !
  3. ! Copyright (C) 2015 ONERA
  4. ! Copyright (C) 2015 Inria
  5. !
  6. ! StarPU is free software; you can redistribute it and/or modify
  7. ! it under the terms of the GNU Lesser General Public License as published by
  8. ! the Free Software Foundation; either version 2.1 of the License, or (at
  9. ! your option) any later version.
  10. !
  11. ! StarPU is distributed in the hope that it will be useful, but
  12. ! WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. !
  15. ! See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. MODULE mod_interface
  17. INTERFACE
  18. FUNCTION starpu_my_init_c() BIND(C)
  19. USE iso_c_binding
  20. INTEGER(KIND=C_INT) :: starpu_my_init_c
  21. END FUNCTION starpu_my_init_c
  22. END INTERFACE
  23. INTERFACE
  24. SUBROUTINE starpu_register_element_c(Neq,Np,Ng,ro,dro,basis,ro_h,dro_h,basis_h) BIND(C)
  25. USE iso_c_binding
  26. INTEGER(KIND=C_INT),VALUE :: Neq,Np,Ng
  27. REAL(KIND=C_DOUBLE),DIMENSION(Neq,Np) :: ro,dro
  28. REAL(KIND=C_DOUBLE),DIMENSION(Np,Ng) :: basis
  29. TYPE(C_PTR), INTENT(OUT) :: ro_h, dro_h, basis_h
  30. END SUBROUTINE starpu_register_element_c
  31. END INTERFACE
  32. INTERFACE
  33. SUBROUTINE starpu_unregister_element_c( &
  34. ro_h,dro_h,basis_h) BIND(C)
  35. USE iso_c_binding
  36. TYPE(C_PTR), INTENT(IN) :: ro_h, dro_h, basis_h
  37. END SUBROUTINE starpu_unregister_element_c
  38. END INTERFACE
  39. INTERFACE
  40. SUBROUTINE starpu_loop_element_task_c(coeff, &
  41. ro_h,dro_h,basis_h) BIND(C)
  42. USE iso_c_binding
  43. REAL(KIND=C_DOUBLE),VALUE :: coeff
  44. TYPE(C_PTR), INTENT(IN) :: ro_h, dro_h, basis_h
  45. END SUBROUTINE starpu_loop_element_task_c
  46. END INTERFACE
  47. INTERFACE
  48. SUBROUTINE starpu_copy_element_task_c( &
  49. ro_h,dro_h) BIND(C)
  50. USE iso_c_binding
  51. TYPE(C_PTR), INTENT(IN) :: ro_h, dro_h
  52. END SUBROUTINE starpu_copy_element_task_c
  53. END INTERFACE
  54. END MODULE mod_interface