Makefile 601 B

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