https://github.com/halide/Halide
Raw File
Tip revision: 444b08df4408a255572cfa0472fec69756696919 authored by Ahmed Taei on 05 March 2019, 19:51:07 UTC
Add apps/resnet_50 benchmarks to test_apps
Tip revision: 444b08d
prefetch.cpp
#include "HalideRuntime.h"

extern "C" {

// These need to inline, otherwise the extern call with the ptr
// parameter breaks a lot of optimizations.
__attribute__((always_inline))
WEAK int _halide_prefetch(const void *ptr) {
    __builtin_prefetch(ptr, 1, 3);
    return 0;
}

}
back to top