Add kernel transformation to add "value" attribute to scalar kernel arguments

Open
#231 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
fortran, python
Domain
compilers, hpc

Research direction

Start by locating the kernel transformation and the generated declarations of scalar kernel arguments. Confirm the generated Fortran adds the value attribute to those scalar arguments, using the generated kernel code as the completion check.

Written by the indexing model from the issue text.

Description

NVIDIA say that this is good practice: "Since Fortran by default passes by reference, you don't want every thread needlessly creating space in device memory to store simple arguments." We simply need to add the value attribute to the declarations of scalar arguments in the kernel code.

Dominant language
Python
Stars
137
Forks
36
Avg merge
6d 16h
Merged PRs (30d)
18

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stfc/PSyclone

All issues in stfc/PSyclone

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.