Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ jobs:
conda activate "${CONDA_ENV}"

# 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.

cmake --build cmake-out --target executorch_delegate_neutron --config Release

# Build check for the neutron backend library
Expand Down
3 changes: 2 additions & 1 deletion backends/nxp/runtime/NeutronBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ typedef struct {
// Neutron compute has no access to FLASH.
// Prefetch weights from FLASH to SRAM using memcpy.
// 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

memcpy(dst, src, size);
}
void wait(uint32_t channel) {}
Expand Down
Loading