https://github.com/halide/Halide
Raw File
Tip revision: 04bd712277ad6fbb595661663d12cc1acc39b29d authored by Ahmed Taei on 05 March 2019, 23:04:43 UTC
Merge branch 'master' into ataei-implicit_lhs_vars
Tip revision: 04bd712
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