Makefile 526 B

1234567891011121314151617
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. FC := pgfortran
  3. ACCFLAGS_1 := -fast
  4. ACCFLAGS_2 := -fast -ta=multicore -Minfo=accel
  5. ACCFLAGS_3 := -fast -ta=tesla:managed -Minfo=accel
  6. laplace_serial: laplace2d.f90 jacobi.f90
  7. ${FC} ${ACCFLAGS_1} -o laplace laplace2d.f90 jacobi.f90
  8. laplace_multicore: laplace2d.f90 jacobi.f90
  9. ${FC} ${ACCFLAGS_2} -o laplace laplace2d.f90 jacobi.f90
  10. laplace_gpu: laplace2d.f90 jacobi.f90
  11. ${FC} ${ACCFLAGS_3} -o laplace laplace2d.f90 jacobi.f90
  12. clean:
  13. rm -f *.o laplace