Makefile 489 B

1234567891011121314
  1. # Copyright (c) 2020 NVIDIA Corporation. All rights reserved.
  2. FC := nvfortran
  3. FFLAGS := -fast
  4. LDFLAGS := -lnvToolsExt
  5. ACCFLAGS := -ta=tesla:managed -Minfo=accel
  6. NVTXINC := -I/opt/nvidia/hpc_sdk/Linux_x86_64/20.9/cuda/11.0/include
  7. NVTXLIB := -L/opt/nvidia/hpc_sdk/Linux_x86_64/20.9/cuda/11.0/lib64/
  8. miniWeather: nvtx.f90 miniWeather_openacc.f90
  9. $(FC) $(FFLAGS) $(ACCFLAGS) $(NVTXINC) nvtx.f90 miniWeather_openacc.f90 -o miniWeather $(NVTXLIB) $(LDFLAGS)
  10. clean:
  11. rm -f *.o miniWeather