StarPU_fortran.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. C StarPU --- Runtime system for heterogeneous multicore architectures.
  2. C
  3. C Copyright (C) 2009-2011,2014 Université de Bordeaux
  4. C Copyright (C) 2010,2014-2015 CNRS
  5. C
  6. C StarPU is free software; you can redistribute it and/or modify
  7. C it under the terms of the GNU Lesser General Public License as published by
  8. C the Free Software Foundation; either version 2.1 of the License, or (at
  9. C your option) any later version.
  10. C
  11. C StarPU is distributed in the hope that it will be useful, but
  12. C WITHOUT ANY WARRANTY; without even the implied warranty of
  13. C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. C
  15. C See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. C
  17. MODULE STARPU_FORTRAN
  18. USE ISO_C_BINDING
  19. TYPE codelet
  20. REAL :: A,B,C
  21. END TYPE codelet
  22. CONTAINS
  23. SUBROUTINE PRINT_INT(X)
  24. INTEGER :: X
  25. WRITE(*,*) 'X =', X
  26. END SUBROUTINE
  27. SUBROUTINE STARPU_SUBMIT_CODELET(CPUFUNC, ARG)
  28. INTEGER :: ARG
  29. INTERFACE
  30. SUBROUTINE CPUFUNC(ARG)
  31. INTEGER :: ARG
  32. END SUBROUTINE
  33. END INTERFACE
  34. CALL CPUFUNC(ARG)
  35. END SUBROUTINE
  36. END MODULE STARPU_FORTRAN
  37. MODULE STARPU_FORTRAN2
  38. USE ISO_C_BINDING
  39. CONTAINS
  40. SUBROUTINE PRINT_INT2(X)
  41. INTEGER :: X
  42. WRITE(*,*) 'X =', X
  43. END SUBROUTINE
  44. END MODULE STARPU_FORTRAN2