Loading...
Searching...
No Matches
SelectGPUAPI.h
Go to the documentation of this file.
#ifndef HALIDE_INTERNAL_SELECT_GPU_API_H
#define HALIDE_INTERNAL_SELECT_GPU_API_H
#include "Expr.h"
/** \file
* Defines a lowering pass that selects which GPU api to use for each
* gpu for loop
*/
namespace Halide {
struct Target;
namespace Internal {
/** Replace for loops with GPU_Default device_api with an actual
* device API depending on what's enabled in the target. Choose the
* first of the following: opencl, cuda */
Stmt select_gpu_api(const 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::select_gpu_api
Stmt select_gpu_api(const Stmt &s, const Target &t)
Replace for loops with GPU_Default device_api with an actual device API depending on what's enabled i...
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