https://github.com/halide/Halide
Raw File
Tip revision: 17d14606f0cd630147ed70f36627bd58259dedb4 authored by Steven Johnson on 12 September 2019, 17:23:29 UTC
Merge branch 'master' into srj-outputs-2
Tip revision: 17d1460
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