Loading...
Searching...
No Matches
InjectHostDevBufferCopies.h
Go to the documentation of this file.
#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"
namespace Halide {
struct Target;
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
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt).
Halide::Internal
Definition AbstractGenerator.h:24
Halide::Internal::call_extern_and_assert
Stmt call_extern_and_assert(const std::string &name, const std::vector< Expr > &args)
A helper function to call an extern function, and assert that it returns 0.
Halide::Internal::inject_host_dev_buffer_copies
Stmt inject_host_dev_buffer_copies(Stmt s, const Target &t)
Inject calls to halide_device_malloc, halide_copy_to_device, and halide_copy_to_host as needed.
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition AbstractGenerator.h:19
Halide::Internal::Stmt
A reference-counted handle to a statement node.
Definition Expr.h:427
Halide::Target
A struct representing a target machine and os to generate code for.
Definition Target.h:19