diff --git a/content/examples/cuda-hip/hip/01_hello_world/makefile b/content/examples/cuda-hip/hip/01_hello_world/makefile index 07cf537..74900fb 100644 --- a/content/examples/cuda-hip/hip/01_hello_world/makefile +++ b/content/examples/cuda-hip/hip/01_hello_world/makefile @@ -1,24 +1,24 @@ SRC=$(wildcard *.cpp) -PROGAMS=$(SRC:%.cpp=%) +PROGRAMS=$(SRC:%.cpp=%) CC=hipcc -CFLAGS=--amdgpu-target=gfx90a +CFLAGS=-O2 --offload-arch=gfx90a all: help -all-examples: $(PROGAMS) +all-examples: $(PROGRAMS) %: %.cpp $(CC) $(CFLAGS) $< -o $@ clean-all: - rm -f $(PROGAMS) + rm -f $(PROGRAMS) help: @grep '^#help:' $(firstword $(MAKEFILE_LIST)) -#help: On LUMI -#help: ml craype-accel-amd-gfx90a rocm/5.2.3 PrgEnv-cray/8.3.3 -#help: +#help: On LUMI +#help: ml craype-accel-amd-gfx90a rocm/6.0.3 PrgEnv-cray/8.5.0 +#help: #help: make 01_array_addition_cpu : #help: make 02_array_addition_gpu_hip : #help: make 03_array_addition_deviceFunc_hip : diff --git a/content/examples/cuda-hip/hip/02_array_addition/makefile b/content/examples/cuda-hip/hip/02_array_addition/makefile index a406d44..78be338 100644 --- a/content/examples/cuda-hip/hip/02_array_addition/makefile +++ b/content/examples/cuda-hip/hip/02_array_addition/makefile @@ -1,24 +1,24 @@ SRC=$(wildcard *.cpp) -PROGAMS=$(SRC:%.cpp=%) +PROGRAMS=$(SRC:%.cpp=%) CC=hipcc -CFLAGS=--amdgpu-target=gfx90a +CFLAGS=-O2 --offload-arch=gfx90a all: help -all-examples: $(PROGAMS) +all-examples: $(PROGRAMS) %: %.cpp $(CC) $(CFLAGS) $< -o $@ clean-all: - rm -f $(PROGAMS) + rm -f $(PROGRAMS) help: @grep '^#help:' $(firstword $(MAKEFILE_LIST)) -#help: On LUMI -#help: ml craype-accel-amd-gfx90a rocm/5.2.3 PrgEnv-cray/8.3.3 -#help: +#help: On LUMI +#help: ml craype-accel-amd-gfx90a rocm/6.0.3 PrgEnv-cray/8.5.0 +#help: #help: make 01_array_addition_cpu : #help: make 02_array_addition_gpu_hip : #help: make 03_array_addition_deviceFunc_hip : diff --git a/content/examples/cuda-hip/hip/03_matrix_summation/makefile b/content/examples/cuda-hip/hip/03_matrix_summation/makefile index 438daa1..c292856 100644 --- a/content/examples/cuda-hip/hip/03_matrix_summation/makefile +++ b/content/examples/cuda-hip/hip/03_matrix_summation/makefile @@ -1,24 +1,24 @@ SRC=$(wildcard *.cpp) -PROGAMS=$(SRC:%.cpp=%) +PROGRAMS=$(SRC:%.cpp=%) CC=hipcc -CFLAGS=--amdgpu-target=gfx90a +CFLAGS=-O2 --offload-arch=gfx90a all: help -all-examples: $(PROGAMS) +all-examples: $(PROGRAMS) %: %.cpp $(CC) $(CFLAGS) $< -o $@ clean-all: - rm -f $(PROGAMS) + rm -f $(PROGRAMS) help: @grep '^#help:' $(firstword $(MAKEFILE_LIST)) -#help: On LUMI -#help: ml craype-accel-amd-gfx90a rocm/5.2.3 PrgEnv-cray/8.3.3 -#help: +#help: On LUMI +#help: ml craype-accel-amd-gfx90a rocm/6.0.3 PrgEnv-cray/8.5.0 +#help: #help: make 01_GPU_grid_block_thread_info : #help: make 02_matrix_thread_index_info : #help: make 03_matrix_summation_GPU_2D2D_2D1D_1D1D :