Makefile 491 B

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