NervanaSystems/maxas

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

hughperkins opened this issue · 0 comments

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