opencl_module.h 792 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
/*!
 *  Copyright (c) 2017 by Contributors
 * \file opencl_module.h
 * \brief Execution handling of OPENCL kernels
 */
#ifndef TVM_RUNTIME_OPENCL_OPENCL_MODULE_H_
#define TVM_RUNTIME_OPENCL_OPENCL_MODULE_H_

#include <tvm/runtime/packed_func.h>
#include <memory>
#include <vector>
#include <string>
13
#include "../meta_data.h"
14 15 16 17

namespace tvm {
namespace runtime {
/*!
18
 * \brief create a opencl module from data.
19
 *
20
 * \param data The module data.
21 22
 * \param fmt The format of the data, can be "clbin", "cl"
 * \param fmap The map function information map of each function.
23
 */
24 25 26 27
Module OpenCLModuleCreate(
    std::string data,
    std::string fmt,
    std::unordered_map<std::string, FunctionInfo> fmap);
28 29 30
}  // namespace runtime
}  // namespace tvm
#endif  // TVM_RUNTIME_OPENCL_OPENCL_MODULE_H_