# Makefile Example to deploy TVM modules.ROCM_PATH=/opt/rocmTVM_ROOT=$(shellcd ../..;pwd)NNVM_PATH=nnvmDMLC_CORE=${TVM_ROOT}/dmlc-corePKG_CFLAGS=-std=c++11 -O2-fPIC\-I${TVM_ROOT}/include\-I${DMLC_CORE}/include\-I${TVM_ROOT}/dlpack/include\-I${ROCM_PATH}/includePKG_LDFLAGS=-L${ROCM_PATH}/lib -L${TVM_ROOT}/lib -ldl-lpthread-lhip_hcc-lMIOpen.PHONY:clean allall:lib/libtvm_runtime_rocm.so# Build rule for all in one TVM package librarylib/libtvm_runtime_rocm.so:rocm_runtime_pack.cc@mkdir -p$(@D)$(CXX)$(PKG_CFLAGS)-shared-o$@$(filter %.cc %.o %.a, $^)$(PKG_LDFLAGS)