LFRic PSyIR datatypes are really for kernel arguments currently
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by tracing the LFRic PSy layer code around symbol_table.find_or_create_tag and LFRicTypes("DofMapDataSymbol"), then compare how kernel arguments and PSy-layer arrays represent rank. The issue does not name a file or test; done would require an agreed datatype distinction and correct dof-map rank handling in both contexts.
Written by the indexing model from the issue text.
Description
I've been trying to add some 'proper' Symbols into the code that creates the LFRic PSy layer. I tried to add a dof-map array but found that that gives me a rank 1 array whereas in the PSy layer, it is a rank 2 array - a 1D slice of it is passed down to a kernel.
sym = self._symbol_table.find_or_create_tag(
map_name, fs=fs_name,
symbol_type=LFRicTypes("DofMapDataSymbol"),
dims=[Reference(ndf_symbol)])
Perhaps we need to prefix the existing type names with "Kernel" to distinguish them from those in the PSy layer? What do you think @rupertford?
- Dominant language
- Python
- Stars
- 137
- Forks
- 36
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stfc/PSyclone
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
frontend: add support for ALOG, ALOG10 and IDInt intrinsics. Specify FLOAT as available on GPU. Openenhancement PSyIR
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
NEMO
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100