Revision 6e0b4991b8cca72e09edf47ce5e1d50e6383b755 authored by Steven Johnson on 27 October 2020, 17:47:46 UTC, committed by Steven Johnson on 28 October 2020, 00:38:57 UTC
1 parent e96a0e9
Raw File
qurt_hvx_vtcm.cpp
#include "HalideRuntimeQurt.h"
#include "mini_qurt.h"
#include "mini_qurt_vtcm.h"
#include "runtime_internal.h"

using namespace Halide::Runtime::Internal::Qurt;

extern "C" {

WEAK void *halide_vtcm_malloc(void *user_context, int size) {
    return HAP_request_VTCM(size, 1);
}

WEAK void halide_vtcm_free(void *user_context, void *addr) {
    HAP_release_VTCM(addr);
}
}
back to top