/*! * Copyright (c) 2018 by Contributors * Optional module when build rocm is switched to off */#include "../codegen_source_base.h"#include "../../runtime/rocm/rocm_module.h"namespacetvm{namespaceruntime{ModuleROCMModuleCreate(std::stringdata,std::stringfmt,std::unordered_map<std::string,FunctionInfo>fmap,std::stringrocm_source,std::stringassembly){LOG(WARNING)<<"ROCM runtime is not enabled, return a source module...";autofget_source=[rocm_source,assembly](conststd::string&format){if(format.length()==0)returnassembly;if(format=="ll"||format=="llvm")returnrocm_source;if(format=="asm")returnassembly;returnstd::string("");};returncodegen::DeviceSourceModuleCreate(data,fmt,fmap,"hsaco",fget_source);}}// namespace runtime}// namespace tvm