Skip to content

Compute example counter sampling not working on M4 #346

Open
@LouisChouraki

Description

@LouisChouraki

Hello,

When running the compute example on a M4 Pro, the duration displayed is always 0ns, no matter the input size (I modified the code to print it as nanoseconds instead of microseconds). But the example works fine on M1-M3. I would assume this generalizes to all M4 chips but I couldn't test it.

I wanted to know if someone has an idea of what could explain this (and ideally how to fix this) as I didn't find much about it online.

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