diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 30d3849a25e..e26e330e97e 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -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 . cmake --build cmake-out --target executorch_delegate_neutron --config Release # Build check for the neutron backend library diff --git a/backends/nxp/runtime/NeutronBackend.cpp b/backends/nxp/runtime/NeutronBackend.cpp index 4c75f76712a..84d95769ecb 100644 --- a/backends/nxp/runtime/NeutronBackend.cpp +++ b/backends/nxp/runtime/NeutronBackend.cpp @@ -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) { memcpy(dst, src, size); } void wait(uint32_t channel) {}