convert most common block to runtime allocated memory blocks - #11
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ec1ea1a24
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
PR: Nek5000 Nek5000#899 PR: Nek5000 Nek5000#901 PR: Nek5000 Nek5000#903 PR: Nek5000 Nek5000#908 (open)
Fix copying SIZE to SIZE.usr Fix NEK_WARN, populated to new file: obj/.nekwarn
touch $1.usr doesn't support auto-detect-usr mode
- make sure all timer variables are declared in CTIMER and initialized in time00 - drop icalld from CTIMER
|
@codex please review again |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6d2faa5a15
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 72821d6960
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
for lib linker
- Also fix NekTests.py ResourceWarnings
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 61aa65de01
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
clean up timestamp
|
Makefile: the graph has 4 forced phases (three barriers) |
|
@codex review. check if previous issues are indeed addressed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e5798d34c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review focusing exclusively on correctness, edge cases, and regressions |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e5798d34c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review focusing exclusively on memory safety, initialization, ownership, and leaks |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e5798d34c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review focusing exclusively on MPI correctness, parallel races, and multi-rank behavior |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e5798d34c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- This avoid SEGV at 2D and low lx1 cases - Systematically identified by audit_cb_alloc.py
|
Here is the overall logic of the makenek to help user for SIZE.usr transition. Either case, a warning message will be printed twice.
|
catch memory allocation error, which turns into harder to detect SEGV later.
|
Make exit calls pre-MPI safe
MPI=0 build uses † ‡ "mpiexec reaps" = a single rank calling |
WIP, this is to test new mem branch
Progress:
obj/.nekwarn.usrin auto-detect-usr modeimplicit nonelocationsif (icalld.eq.0) counter=0, and move all in initialization to time00Even original code has bugs in counter. This also fix some conflict of icalld.
Drop
icalldfromCTIMERas all variables are initialized intime00now,mpi_dummy.fis pure F77 andimplicit noneneeds to be place before include.equivalent->transferbug. duplicate local memory and use chcopy.This is for downstream app to link libnek5000.a directly.
Add libtest into makefile for passing flags, add pytest (LibLink) and CI (LibLink).
TODOs
implicit none, module files and include files need changes.Should we add checks in makenek?
PARDICT.SDMP2is dropped on purpose?module -> init()?USR_MODin case there are mod used in usr?For 1 and 2, maybe have a lint tool that help identify or even auto fix F77 -> F90 transition. Especially, for usr.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com