Skip to content

NXP backend: Fix NeutronConfig copy callback signature to match the d… - #22439

Open
jirioc wants to merge 1 commit into
pytorch:mainfrom
nxp-upstream:EIEX-1071-upstream-fix-neutronconfig-copy-callback-signature-to-match-the-driver-header
Open

NXP backend: Fix NeutronConfig copy callback signature to match the d…#22439
jirioc wants to merge 1 commit into
pytorch:mainfrom
nxp-upstream:EIEX-1071-upstream-fix-neutronconfig-copy-callback-signature-to-match-the-driver-header

Conversation

@jirioc

@jirioc jirioc commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix NeutronConfig copy callback signature to match the driver header.

Test plan

Modified the nxp-build-test to test this.

cc @robert-kalmar @JakeStevens @digantdesai @rascani

@pytorch-bot

pytorch-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22439

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit f51ddda with merge base 55a969e (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 2, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 2, 2026

Copy link
Copy Markdown

CLA Not Signed

@jirioc
jirioc force-pushed the EIEX-1071-upstream-fix-neutronconfig-copy-callback-signature-to-match-the-driver-header branch from fd7f8ad to 9e0848e Compare September 5, 2026 07:07
@jirioc jirioc added the module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ label Sep 7, 2026
@jirioc
jirioc force-pushed the EIEX-1071-upstream-fix-neutronconfig-copy-callback-signature-to-match-the-driver-header branch from 9e0848e to f51ddda Compare September 7, 2026 06:47
@jirioc

jirioc commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

@pytorchbot label "release notes: nxp"

@pytorch-bot pytorch-bot Bot added the release notes: nxp Changes to the NXP Neutron backend delegate label Sep 7, 2026

# Build
cmake -DEXECUTORCH_BUILD_NXP_NEUTRON=ON -Bcmake-out .
cmake -DEXECUTORCH_BUILD_NXP_NEUTRON=ON -DCMAKE_CXX_FLAGS="-DEXTERNAL_MEM" -Bcmake-out .

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Instead of editing the CMAKE_CXX_FLAGS, introduce a configuration option into Neutron Backend, allowing the External Memory for eIQ Neutron NPU.

// For a model converted with --fetch_constants_to_sram.
void copy(void* dst, const void* src, uint32_t size, uint32_t channel) {
// cppcheck-suppress constParameterCallback
void copy(void* dst, void* src, uint32_t size, uint32_t channel) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

void copy(void* dst, const void* src, uint32_t size, uint32_t channels)

shall avoid the CPPCHECK reported issue.

@jirioc jirioc Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Const needs to be removed in order to be compatible with the NeutronDriver.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ release notes: nxp Changes to the NXP Neutron backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants