hello.F 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. C StarPU --- Runtime system for heterogeneous multicore architectures.
  2. C
  3. C Copyright (C) 2009-2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  4. C
  5. C StarPU is free software; you can redistribute it and/or modify
  6. C it under the terms of the GNU Lesser General Public License as published by
  7. C the Free Software Foundation; either version 2.1 of the License, or (at
  8. C your option) any later version.
  9. C
  10. C StarPU is distributed in the hope that it will be useful, but
  11. C WITHOUT ANY WARRANTY; without even the implied warranty of
  12. C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. C
  14. C See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. C
  16. #include "StarPU_fortran.h"
  17. SUBROUTINE HELLOSUB(X)
  18. INTEGER :: X
  19. WRITE(*,*) 'X =', X
  20. END SUBROUTINE
  21. PROGRAM HELLO
  22. USE STARPU_FORTRAN
  23. USE ISO_C_BINDING
  24. INTEGER :: TOTO
  25. TOTO = 42
  26. CALL STARPU_SUBMIT_CODELET(PRINT_INT, TOTO)
  27. C CALL STARPU_SUBMIT_CODELET(HELLOSUB, TOTO)
  28. C CALL DUMMY_C_FUNC(TOTO)
  29. END PROGRAM