Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a shortcut for globals to reduce time #2909

Merged
merged 15 commits into from
Jun 19, 2024
Merged

Use a shortcut for globals to reduce time #2909

merged 15 commits into from
Jun 19, 2024

Conversation

alkino
Copy link
Member

@alkino alkino commented Jun 11, 2024

No description provided.

@bbpbuildbot

This comment has been minimized.

Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
12.9% Duplication on New Code

See analysis details on SonarCloud

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

@alkino alkino marked this pull request as ready for review June 17, 2024 17:26
@alkino alkino closed this Jun 17, 2024
@alkino alkino reopened this Jun 17, 2024
@bbpbuildbot

This comment has been minimized.

@alkino alkino closed this Jun 17, 2024
@alkino alkino reopened this Jun 17, 2024
Copy link

✔️ 7717ba3 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@bbpbuildbot

This comment has been minimized.

Copy link

✔️ 1d48abc -> Azure artifacts URL

Copy link
Contributor

NEURON ModelDB CI: launching for 1d48abc via its drop url

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.22%. Comparing base (f1c6197) to head (1d48abc).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2909      +/-   ##
==========================================
- Coverage   67.22%   67.22%   -0.01%     
==========================================
  Files         569      569              
  Lines      104694   104714      +20     
==========================================
+ Hits        70381    70390       +9     
- Misses      34313    34324      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

NEURON ModelDB CI: 1d48abc -> download reports from here

Copy link
Collaborator

@1uc 1uc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my side this looks very good and it seems ModelDB CI is passing too.

There's one question about bbcore_{read,write}: do those ever need to access thread variables?

Maybe @pramodk or @nrnhines want to try if the combined effect of this PR and #2914 solves the performance issue reported in #2787.

src/nmodl/nocpout.cpp Show resolved Hide resolved
src/nmodl/parsact.cpp Show resolved Hide resolved
@alkino alkino changed the title _globals Use a shortcut for globals to reduce time:w Jun 18, 2024
@alkino alkino changed the title Use a shortcut for globals to reduce time:w Use a shortcut for globals to reduce time Jun 18, 2024
@alkino
Copy link
Member Author

alkino commented Jun 19, 2024

GLOBAL in hh.mod:
master:

nt	 cache0	          cache1
1	 10.6936          11.6262
2	 6.75487          6.81813
4	 5.42909          5.77618
8	 4.5747           4.37193

this PR:

nt	 cache0	           cache1
1	 5.38534           5.39634
2	 2.81755           2.82948
4	 1.9551            1.83342
8	 1.43766           1.50557

Copy link
Member

@pramodk pramodk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(questions were already clarified offline)

@alkino alkino merged commit f436008 into master Jun 19, 2024
40 checks passed
@alkino alkino deleted the cornu/use_globals branch June 19, 2024 16:52
pramodk added a commit that referenced this pull request Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance regression with master / 9.0 when GLOBAL variables are used a MOD file
4 participants