Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
SelectGPUAPI.h
Go to the documentation of this file.
1#ifndef HALIDE_INTERNAL_SELECT_GPU_API_H
2#define HALIDE_INTERNAL_SELECT_GPU_API_H
3
4#include "Expr.h"
5
6/** \file
7 * Defines a lowering pass that selects which GPU api to use for each
8 * gpu for loop
9 */
10
11namespace Halide {
12
13struct Target;
14
15namespace Internal {
16
17/** Replace for loops with GPU_Default device_api with an actual
18 * device API depending on what's enabled in the target. Choose the
19 * first of the following: opencl, cuda */
20Stmt select_gpu_api(const Stmt &s, const Target &t);
21
22} // namespace Internal
23} // namespace Halide
24
25#endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
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...
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
A reference-counted handle to a statement node.
Definition Expr.h:427
A struct representing a target machine and os to generate code for.
Definition Target.h:19