Revision 6f5dc6bec58bf0a6305113166bfdcfeb80af3c5f authored by Steven Johnson on 07 December 2020, 19:27:17 UTC, committed by Steven Johnson on 07 December 2020, 19:27:17 UTC
Currently, it can contain garbage after parsing
1 parent 4f554a7
InjectHostDevBufferCopies.h
#ifndef HALIDE_HOST_GPU_BUFFER_COPIES_H
#define HALIDE_HOST_GPU_BUFFER_COPIES_H
/** \file
* Defines the lowering passes that deal with host and device buffer flow.
*/
#include <string>
#include <vector>
#include "Expr.h"
#include "Target.h"
namespace Halide {
namespace Internal {
/** A helper function to call an extern function, and assert that it
* returns 0. */
Stmt call_extern_and_assert(const std::string &name, const std::vector<Expr> &args);
/** Inject calls to halide_device_malloc, halide_copy_to_device, and
* halide_copy_to_host as needed. */
Stmt inject_host_dev_buffer_copies(Stmt s, const Target &t);
} // namespace Internal
} // namespace Halide
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...