https://github.com/halide/Halide
Raw File
Tip revision: 1a53d6b68179ffa6cb456023ad00828effad4044 authored by Derek Gerstmann on 24 April 2023, 19:52:24 UTC
Merge branch 'main' into vulkan-phase2-runtime
Tip revision: 1a53d6b
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