opencl_module.h 822 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*!
 *  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/config.h>
#include <tvm/runtime/packed_func.h>
#include <memory>
#include <vector>
#include <string>
14
#include "../meta_data.h"
15 16 17 18

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