https://github.com/halide/Halide
Raw File
Tip revision: 8c651b459a4e3744b413c23a29b5c5d968702bb7 authored by Steven Johnson on 17 July 2024, 16:16:39 UTC
Detect ARM CPU features for host target and in runtime (Backport to release/18.x) (#8343)
Tip revision: 8c651b4
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