Port build_module.py to C++ (#667)
* Port build_module.py to C++ * Fix lint errors * Fix more lint errors * Fix more lint errors * Fix more lint errors * Fix build error * Implemented style fixes * Fix lint errors * Added function to construct target from string lower now returns array * Fix lint error * Implemented review changes - style & Target options -> std::vector * Fixed lint, argument alignment and added unit test * Changed test to target LLVM, fixed sign compare warnings * Reverted unit test to CUDA, changed Jenkinsfile to enable GPU for C++ tests * Slight change to Jenkinsfile * Changed build_module test from CUDA to LLVM * Added function var() to construct a Var instance. Changed implementation of LLVMEnabled() * Reverted Jenkinsfile
Showing
- include/tvm/build_module.h 153 additions, 0 deletionsinclude/tvm/build_module.h
- include/tvm/expr.h 7 additions, 0 deletionsinclude/tvm/expr.h
- include/tvm/schedule.h 5 additions, 5 deletionsinclude/tvm/schedule.h
- src/codegen/build_module.cc 314 additions, 0 deletionssrc/codegen/build_module.cc
- src/lang/expr.cc 4 additions, 0 deletionssrc/lang/expr.cc
- tests/cpp/build_module_test.cc 42 additions, 0 deletionstests/cpp/build_module_test.cc
include/tvm/build_module.h
0 → 100644
src/codegen/build_module.cc
0 → 100644
tests/cpp/build_module_test.cc
0 → 100644
Please register or sign in to comment