StarPU_fortran.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010 Université de Bordeaux 1
  4. * Copyright (C) 2010 Centre National de la Recherche Scientifique
  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. */
  17. C
  18. C StarPU
  19. C Copyright (C) Université Bordeaux 1, CNRS 2008-2010 (see AUTHORS file)
  20. C
  21. C This program is free software; you can redistribute it and/or modify
  22. C it under the terms of the GNU Lesser General Public License as published by
  23. C the Free Software Foundation; either version 2.1 of the License, or (at
  24. C your option) any later version.
  25. C
  26. C This program is distributed in the hope that it will be useful, but
  27. C WITHOUT ANY WARRANTY; without even the implied warranty of
  28. C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  29. C
  30. C See the GNU Lesser General Public License in COPYING.LGPL for more details.
  31. C
  32. MODULE STARPU_FORTRAN
  33. USE ISO_C_BINDING
  34. TYPE codelet
  35. REAL :: A,B,C
  36. END TYPE codelet
  37. CONTAINS
  38. SUBROUTINE PRINT_INT(X)
  39. INTEGER :: X
  40. WRITE(*,*) 'X =', X
  41. END SUBROUTINE
  42. SUBROUTINE STARPU_SUBMIT_CODELET(CPUFUNC, ARG)
  43. INTEGER :: ARG
  44. INTERFACE
  45. SUBROUTINE CPUFUNC(ARG)
  46. INTEGER :: ARG
  47. END SUBROUTINE
  48. END INTERFACE
  49. CALL CPUFUNC(ARG)
  50. END SUBROUTINE
  51. END MODULE STARPU_FORTRAN
  52. MODULE STARPU_FORTRAN2
  53. USE ISO_C_BINDING
  54. CONTAINS
  55. SUBROUTINE PRINT_INT2(X)
  56. INTEGER :: X
  57. WRITE(*,*) 'X =', X
  58. END SUBROUTINE
  59. END MODULE STARPU_FORTRAN2