Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

microbench.cpp checks minor is >= 2. is this normal? #9

@hughperkins

Description

@hughperkins

Per the message in microbench.cpp, minor should be >=0:

printf("No compute 5.0 device found, exiting.\n");

But hte check is for >=2:

if (major >= 5 && minor >= 2)

On a 940M (Maxwell), this fails to run, since 940M is 5.0 only (I think?). But by modifying the if statement, to accept minor >= 0, it runs ok:

$ ./microbench major 5 minor 0
Using: Id:0 GeForce 940M (5.0)

b:00 w:000 t:0000 l:00 clocks:00000034 out:00000000
b:00 w:001 t:0032 l:00 clocks:00000031 out:00000020
b:00 w:002 t:0064 l:00 clocks:00000032 out:00000040
b:00 w:003 t:0096 l:00 clocks:00000034 out:00000060
average: 32.750, min 31, max: 34

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