Skip to content

Erroneous calculation of totalbankreads in memory_stats_t, etc. #323

@andy-shiyi-liu

Description

@andy-shiyi-liu

I am changing the GPU configs to test the performance under different configurations. When I use a config with increased dram_atom_size, I found that all banks report an access count of 0, even if they actually have memory accesses.

Image

I found that the issue is caused by trying to use ceil() on the division of two unsigned values, which does not help at all.

Image Image

The same problem could also apply to other statistics.

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