Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory alignment #777

Open
skane1024 opened this issue Jun 20, 2024 · 1 comment
Open

memory alignment #777

skane1024 opened this issue Jun 20, 2024 · 1 comment
Labels
TIME WAIT Waiting for an approppriate period for a response before closing the issue.

Comments

@skane1024
Copy link

In the BuildArmComputeTensor(Tensor& tensor, const armnn::TensorInfo& tensorInfo) function in the ArmComputeTensorUtils.hpp file, I tried to modify the alignment value of ComputeTensor memory, that is,

tensor.allocator()->init(BuildArmComputeTensorInfo(tensorInfo));
modified to
tensor.allocator()->init(BuildArmComputeTensorInfo(tensorInfo),4096);,

making the allocated memory can be 4K aligned(default 64), but in the test found that the execution speed of some operators has slowed down, I don't quite understand why?

@Colm-in-Arm
Copy link
Collaborator

Hi,

Superficially I can't see any obvious reason why inference performance would decrease by changing the tensor alignment. Is it CpuAcc or GpuAcc you're using? If you can tell me the hardware too that might be relevant too.

Colm.

@Colm-in-Arm Colm-in-Arm added the TIME WAIT Waiting for an approppriate period for a response before closing the issue. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TIME WAIT Waiting for an approppriate period for a response before closing the issue.
Projects
None yet
Development

No branches or pull requests

2 participants