https://github.com/halide/Halide
Raw File
Tip revision: ad1f4fae9d8bd28ec9c799439cd94bd2e9378b13 authored by Alex Reinking on 05 August 2020, 23:38:41 UTC
Set library version to 10.0.0
Tip revision: ad1f4fa
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