https://github.com/halide/Halide
Raw File
Tip revision: 93ac5af4cb344283b87999dc0d334b6e08f5a80f authored by Shoaib Kamil on 19 May 2020, 16:31:33 UTC
Avoid the problem we were trying to avoid in the first place
Tip revision: 93ac5af
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