Skip to content

claw-project/claw-directive-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CLAW Tutorial

This repository aims to guide user through using the CLAW Language directive as well as the CLAW Compiler to transform their Fortran code.

Part 1: CLAW Compiler and Low-level directive

Exercise 1.1: Loop fusion

Original code is here

  1. Merge all the 4 loops together to form only a single loop. [solution] [transformed]
  2. Merge the two first loops together and the two last ones together. [solution] [transformed]
Hint to transform your code

clawfc -o transformed_code.f90 code.f90

Exercise 1.2: Loop reordering

Original code is here

  1. Reorder loop i with j [solution] [transformed]
Hint to transform your code

clawfc -o transformed_code.f90 code.f90

Exercise 1.3:

Part 2: Single Column Abstraction - SCA

Exercise 2.1

Part 3: External transformation

If you are still willing to learn about the CLAW Compiler and you want to implement your own transformation then you should keep going with this exercise section.

Exercise 3.1

Releases

No releases published

Packages

No packages published