Skip to content

Accessors for cache pointers.#2712

Merged
pramodk merged 2 commits into
masterfrom
1uc/nmodl-ions
Feb 8, 2024
Merged

Accessors for cache pointers.#2712
pramodk merged 2 commits into
masterfrom
1uc/nmodl-ions

Conversation

@1uc

@1uc 1uc commented Feb 7, 2024

Copy link
Copy Markdown
Collaborator

In NMODL we have a struct:

struct ionic_Instance  {
    double* ena{};
    double* ina{};
    double* v_unused{};
    double* g_unused{};
    const double* const* ion_ina{};
    double* const* ion_ena{};
    ionic_Store* global{&ionic_global};
};

The pointers are views into contiguous arrays of doubles. While we can the address for parameters like ena, we can't get the address of "double pointer" variables, with the previous existing API.

In NMODL we have a struct:

    struct ionic_Instance  {
        double* ena{};
        double* ina{};
        double* v_unused{};
        double* g_unused{};
        const double* const* ion_ina{};
        double* const* ion_ena{};
        ionic_Store* global{&ionic_global};
    };

The pointers are views into contiguous arrays of doubles. While we
can the address for parameters like `ena`, we can't get the address
of "double pointer" variables, with the previous existing API.
@azure-pipelines

Copy link
Copy Markdown

✔️ ea8b6fc -> Azure artifacts URL

@codecov

codecov Bot commented Feb 7, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c2566ea) 66.14% compared to head (32af72a) 66.14%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2712      +/-   ##
==========================================
- Coverage   66.14%   66.14%   -0.01%     
==========================================
  Files         558      558              
  Lines      103641   103640       -1     
==========================================
- Hits        68557    68551       -6     
- Misses      35084    35089       +5     

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

@bbpbuildbot

This comment has been minimized.

@sonarqubecloud

sonarqubecloud Bot commented Feb 7, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@azure-pipelines

Copy link
Copy Markdown

✔️ 32af72a -> Azure artifacts URL

@1uc

1uc commented Feb 8, 2024

Copy link
Copy Markdown
Collaborator Author

@pramodk could we please merge this? We need it to be part of neuron-nightly which is used by NMODL CI.

@pramodk

pramodk commented Feb 8, 2024

Copy link
Copy Markdown
Member

@1uc : sorry, I missed the notification!

@pramodk pramodk merged commit 1de44de into master Feb 8, 2024
@pramodk pramodk deleted the 1uc/nmodl-ions branch February 8, 2024 19:18
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.

3 participants