build_opencl_off.cc 496 Bytes
Newer Older
1 2
/*!
 *  Copyright (c) 2018 by Contributors
3
 *  Optional module when build opencl is switched to off
4
 */
5 6 7 8 9 10 11 12 13
#include "../codegen_source_base.h"
#include "../../runtime/opencl/opencl_module.h"

namespace tvm {
namespace runtime {

Module OpenCLModuleCreate(
    std::string data,
    std::string fmt,
14 15
    std::unordered_map<std::string, FunctionInfo> fmap,
    std::string source) {
16 17 18 19 20
  return codegen::DeviceSourceModuleCreate(data, fmt, fmap, "opencl");
}

}  // namespace runtime
}  // namespace tvm