diff --git a/examples/hello_world/Makefile b/examples/hello_world/Makefile index fc0ffdf..2dc6ea6 100644 --- a/examples/hello_world/Makefile +++ b/examples/hello_world/Makefile @@ -1,19 +1,16 @@ F90=nvfortran F90FLAGS=-cuda .PHONY: clean distclean all: hello_world_cpu.x hello_world_cuda.x mem_alloc.x hello_world_cuda.x: hello_world_cuda.f90 hello_world_cpu.x: hello_world_cpu.f90 mem_alloc.x: mem_alloc.f90 %.x: %.f90 $(F90) $(F90FLAGS) $< -o $@ -distclean: clean - rm *.x - clean: - rm -f *.o *.mod + rm -f *.o *.mod *.x diff --git a/examples/hello_world/README b/examples/hello_world/README new file mode 100644 index 0000000..5e1c6f1 --- /dev/null +++ b/examples/hello_world/README @@ -0,0 +1,5 @@ +This directory contains the warmup examples you can submit to follow the lecture. +The directory contains: hello_world, memory allocation +commands to be esecuted: +$source source_file +$sbatch script.sh diff --git a/examples/hello_world/source_file b/examples/hello_world/source_file new file mode 100644 index 0000000..9030d0f --- /dev/null +++ b/examples/hello_world/source_file @@ -0,0 +1,2 @@ +#!/bin/bashrc +module load nvhpc