https://github.com/halide/Halide
Raw File
Tip revision: 98b2f7431979562344b24bbace2ebf0512f7ca1e authored by Derek Gerstmann on 17 May 2023, 22:00:36 UTC
Change the feature version requirement to v1.3 (since v1.2 lacks the necessary support).
Tip revision: 98b2f74
fuchsia_host_cpu_count.cpp
#include "HalideRuntime.h"

extern "C" {

uint32_t zx_system_get_num_cpus(void);

WEAK int halide_host_cpu_count() {
    return (int)zx_system_get_num_cpus();
}
}
back to top