Skip to content

Commit 06ec67c

Browse files
authored
Bug fix in Ethos runtime backend
Differential Revision: D71658384 Pull Request resolved: #9517
1 parent 37036b3 commit 06ec67c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backends/arm/runtime/EthosUBackend.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* ethos-u-core-driver for hardware interaction.
1111
*/
1212

13+
#include <cstdint>
1314
#include <cstring>
1415
#include <memory>
1516

@@ -282,7 +283,10 @@ class EthosUBackend final : public ::executorch::runtime::BackendInterface {
282283
// constant weight data, then scratch (which contains input and output)
283284
// scratch is written above in this function.
284285
uint64_t bases[2] = {
285-
(uint64_t)handles.weight_data, (uint64_t)handles.scratch_data};
286+
static_cast<uint64_t>(
287+
reinterpret_cast<uintptr_t>((handles.weight_data))),
288+
static_cast<uint64_t>(
289+
reinterpret_cast<uintptr_t>((handles.scratch_data)))};
286290
size_t bases_size[2] = {
287291
handles.weight_data_size, handles.scratch_data_size};
288292
int result = 0;

0 commit comments

Comments
 (0)