"""Script to prepare test_addone.so"""importtvmimportosdefprepare_test_libs(base_path):n=tvm.var("n")A=tvm.placeholder((n,),name='A')B=tvm.compute(A.shape,lambda*i:A(*i)+1.0,name='B')s=tvm.create_schedule(B.op)
# Compile library in system library modefadd_syslib=tvm.build(s,[A,B],"llvm --system-lib",name="addonesys")syslib_path=os.path.join(base_path,"test_addone_sys.o")