https://github.com/halide/Halide
Raw File
Tip revision: cfff9bbf8d95476020f60a768cd1644afd9865c4 authored by Steven Johnson on 31 August 2018, 21:33:31 UTC
Merge branch 'master' into srj-bufcallwrap
Tip revision: cfff9bb
android_host_cpu_count.cpp
#include "HalideRuntime.h"

extern "C" {

extern long sysconf(int);

WEAK int halide_host_cpu_count() {
    // Works for Android ARMv7. Probably bogus on other platforms.
    return sysconf(97);
}

}
back to top