Makefile 639 B

12345678910111213141516171819
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. FC := nvfortran
  3. ACCFLAGS_1 := -fast -ta=tesla -Minfo=accel
  4. ACCFLAGS_2 := -fast -ta=tesla:managed -Minfo=accel
  5. laplace_update: laplace2d.f90 jacobi.f90
  6. ${FC} ${ACCFLAGS_1} -o laplace_update laplace2d.f90 jacobi.f90
  7. laplace_no_update: laplace2d.f90 jacobi.f90
  8. ${FC} ${ACCFLAGS_1} -o laplace_no_update laplace2d.f90 jacobi.f90
  9. laplace_no_managed: laplace2d.f90 jacobi.f90
  10. ${FC} ${ACCFLAGS_1} -o laplace laplace2d.f90 jacobi.f90
  11. laplace_managed: laplace2d.f90 jacobi.f90
  12. ${FC} ${ACCFLAGS_2} -o laplace_managed laplace2d.f90 jacobi.f90
  13. clean:
  14. rm -f *.o laplace laplace_*