https://github.com/halide/Halide
Raw File
Tip revision: c413e325e5481686b53586398673984df73fa57d authored by Andrew Adams on 23 February 2021, 22:26:49 UTC
Merge branch 'dsharletg/sliding-window' into abadams/slide_over_split_loop
Tip revision: c413e32
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