1 Star 0 Fork 3

xiongying/Halide

forked from Gitee 极速下载/Halide 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DeviceAPI.h 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
Steven Johnson 提交于 2021-01-13 01:55 +08:00 . Remove OpenGL support (part 1) (#5626)
#ifndef HALIDE_DEVICEAPI_H
#define HALIDE_DEVICEAPI_H
/** \file
* Defines DeviceAPI.
*/
#include <string>
#include <vector>
namespace Halide {
/** An enum describing a type of device API. Used by schedules, and in
* the For loop IR node. */
enum class DeviceAPI {
None, /// Used to denote for loops that run on the same device as the containing code.
Host,
Default_GPU,
CUDA,
OpenCL,
OpenGLCompute,
Metal,
Hexagon,
HexagonDma,
D3D12Compute,
};
/** An array containing all the device apis. Useful for iterating
* through them. */
const DeviceAPI all_device_apis[] = {DeviceAPI::None,
DeviceAPI::Host,
DeviceAPI::Default_GPU,
DeviceAPI::CUDA,
DeviceAPI::OpenCL,
DeviceAPI::OpenGLCompute,
DeviceAPI::Metal,
DeviceAPI::Hexagon,
DeviceAPI::HexagonDma,
DeviceAPI::D3D12Compute};
} // namespace Halide
#endif // HALIDE_DEVICEAPI_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/VisionDeveloper/Halide.git
git@gitee.com:VisionDeveloper/Halide.git
VisionDeveloper
Halide
Halide
main

搜索帮助