https://github.com/halide/Halide
Raw File
Tip revision: 1836044836b117d93e6fe013e522975b173b4737 authored by Z Stern on 28 December 2017, 17:53:27 UTC
Merge branch 'master' into vulkan
Tip revision: 1836044
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