https://github.com/halide/Halide
Raw File
Tip revision: 928ba6ebaa8f9a7bb5d07ec3775a71723d6d3b5f authored by Steven Johnson on 17 November 2021, 23:17:04 UTC
Merge branch 'master' into shoaibkamil/opengl_compute_tests
Tip revision: 928ba6e
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