Halide
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 #include "Target.h"
6 
7 /** \file
8  * Defines a lowering pass that selects which GPU api to use for each
9  * gpu for loop
10  */
11 
12 namespace Halide {
13 namespace Internal {
14 
15 /** Replace for loops with GPU_Default device_api with an actual
16  * device API depending on what's enabled in the target. Choose the
17  * first of the following: opencl, cuda, openglcompute, opengl */
18 Stmt select_gpu_api(const Stmt &s, Target t);
19 
20 } // namespace Internal
21 } // namespace Halide
22 
23 #endif
Halide::Internal::select_gpu_api
Stmt select_gpu_api(const Stmt &s, Target t)
Replace for loops with GPU_Default device_api with an actual device API depending on what's enabled i...
Target.h
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition: AddAtomicMutex.h:21
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Expr.h