codegen_opencl.h 446 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#pragma once

#include "megbrain_build_config.h"

#if MGB_JIT && MGB_OPENCL

#include "megbrain/jit/executor_opr.h"

namespace mgb {
namespace jit {
/*!
 * \brief generate opencl kernel source code
 * \return (kernel name, kernel source)
 */
std::pair<std::string, std::string> codegen_opencl(
        const InternalGraph& internal_graph, const JITExecutor::Args& args);

}  // namespace jit
}  // namespace mgb

#endif  // MGB_JIT && MGB_OPENCL