Skip to content

Vulkan new block assignment memory smaller than actual size needed #8868

@JiancongWang

Description

@JiancongWang

Hi guys,
I am reporting this issue of block memory assignment being too small compared to the actual size needed. So I was adapting the harris app to run on vulkan on android. A memory error pops out. Upon closer look I narrowed down the issue. So the memory request is trying to assign a memory size of 15630480 byte. And then here it will round up the block size to be assigned to 15630496 bytes (this is round up to multiple of 32). Later on, when it is trying to check if the block can fit in the memory here , it rounds up the memory ( the actual_size) to 15630528 (this is round up to multiple of 64). And then actual asked memory size 15630528 > block size 15630496 and the memory assignment from block fail. I believe the root cause is due to these 2 use different conform functions rounding up to 32 and 64. I think the conform function should be aligned to use the same round up factor, either both 32 or both 64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions