https://github.com/halide/Halide
Raw File
Tip revision: 517f16c6d68ddea0e23bb280d47564daea2a437e authored by Zalman Stern on 15 May 2019, 17:31:22 UTC
Add WebAssembly feature target flags to CMake support.
Tip revision: 517f16c
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