Loading...
Searching...
No Matches
OffloadGPULoops.h
Go to the documentation of this file.
#ifndef HALIDE_OFFLOAD_GPU_LOOPS_H
#define HALIDE_OFFLOAD_GPU_LOOPS_H
/** \file
* Defines a lowering pass to pull loops marked with
* GPU device APIs to a separate module, and call them through the
* appropriate host runtime module.
*/
#include "Expr.h"
namespace Halide {
struct Target;
namespace Internal {
/** Pull loops marked with GPU device APIs to a separate
* module, and call them through the appropriate host runtime module. */
Stmt inject_gpu_offload(const Stmt &s, const Target &host_target);
} // 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::inject_gpu_offload
Stmt inject_gpu_offload(const Stmt &s, const Target &host_target)
Pull loops marked with GPU device APIs to a separate module, and call them through the appropriate ho...
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