You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

module.mk 3.9 kB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := atc
  4. LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations
  5. LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DCOMPILE_OMG_PACKAGE -O2 -Dgoogle=ascend_private
  6. LOCAL_SRC_FILES := \
  7. main.cc \
  8. single_op_parser.cc \
  9. keep_dtype_option.cc \
  10. ../session/omg.cc \
  11. ../ir_build/atc_ir_common.cc \
  12. LOCAL_C_INCLUDES := \
  13. $(LOCAL_PATH)/../ ./ \
  14. $(TOPDIR)inc \
  15. $(TOPDIR)metadef/inc \
  16. $(TOPDIR)graphengine/inc \
  17. $(TOPDIR)inc/external \
  18. $(TOPDIR)metadef/inc/external \
  19. $(TOPDIR)graphengine/inc/external \
  20. $(TOPDIR)metadef/inc/external/graph \
  21. $(TOPDIR)graphengine/inc/framework \
  22. $(TOPDIR)libc_sec/include \
  23. $(TOPDIR)metadef/inc/common/util \
  24. $(TOPDIR)parser \
  25. third_party/json/include \
  26. third_party/gflags/include \
  27. third_party/protobuf/include \
  28. proto/om.proto \
  29. proto/ge_ir.proto \
  30. proto/task.proto \
  31. proto/insert_op.proto \
  32. LOCAL_SHARED_LIBRARIES := \
  33. libc_sec \
  34. libge_common \
  35. libascend_protobuf \
  36. libslog \
  37. libgraph \
  38. libregister \
  39. liberror_manager \
  40. libge_compiler \
  41. libruntime_compile \
  42. libparser_common \
  43. liberror_manager \
  44. LOCAL_STATIC_LIBRARIES := libgflags
  45. LOCAL_LDFLAGS := -lrt -ldl
  46. include $(BUILD_HOST_EXECUTABLE)
  47. include $(CLEAR_VARS)
  48. LOCAL_MODULE := atclib/atc.bin
  49. LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations
  50. LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DCOMPILE_OMG_PACKAGE -O2 -Dgoogle=ascend_private
  51. LOCAL_SRC_FILES := \
  52. main.cc \
  53. single_op_parser.cc \
  54. keep_dtype_option.cc \
  55. ../session/omg.cc \
  56. ../ir_build/atc_ir_common.cc \
  57. LOCAL_C_INCLUDES := \
  58. $(LOCAL_PATH)/../ ./ \
  59. $(TOPDIR)inc \
  60. $(TOPDIR)metadef/inc \
  61. $(TOPDIR)graphengine/inc \
  62. $(TOPDIR)inc/external \
  63. $(TOPDIR)metadef/inc/external \
  64. $(TOPDIR)graphengine/inc/external \
  65. $(TOPDIR)metadef/inc/external/graph \
  66. $(TOPDIR)graphengine/inc/framework \
  67. $(TOPDIR)libc_sec/include \
  68. $(TOPDIR)metadef/inc/common/util \
  69. $(TOPDIR)parser \
  70. third_party/json/include \
  71. third_party/gflags/include \
  72. third_party/protobuf/include \
  73. proto/om.proto \
  74. proto/ge_ir.proto \
  75. proto/task.proto \
  76. proto/insert_op.proto \
  77. LOCAL_SHARED_LIBRARIES := \
  78. libc_sec \
  79. libge_common \
  80. libascend_protobuf \
  81. libslog \
  82. libgraph \
  83. libregister \
  84. liberror_manager \
  85. libge_compiler \
  86. libruntime_compile \
  87. libparser_common \
  88. liberror_manager \
  89. LOCAL_STATIC_LIBRARIES := libgflags
  90. LOCAL_LDFLAGS := -lrt -ldl
  91. include $(BUILD_HOST_EXECUTABLE)
  92. include $(CLEAR_VARS)
  93. LOCAL_MODULE := fwkacl/atc.bin
  94. LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations
  95. LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 -DCOMPILE_OMG_PACKAGE -O2 -Dgoogle=ascend_private
  96. LOCAL_SRC_FILES := \
  97. main.cc \
  98. single_op_parser.cc \
  99. keep_dtype_option.cc \
  100. ../session/omg.cc \
  101. ../ir_build/atc_ir_common.cc \
  102. LOCAL_C_INCLUDES := \
  103. $(LOCAL_PATH)/../ ./ \
  104. $(TOPDIR)inc \
  105. $(TOPDIR)metadef/inc \
  106. $(TOPDIR)graphengine/inc \
  107. $(TOPDIR)inc/external \
  108. $(TOPDIR)metadef/inc/external \
  109. $(TOPDIR)graphengine/inc/external \
  110. $(TOPDIR)metadef/inc/external/graph \
  111. $(TOPDIR)graphengine/inc/framework \
  112. $(TOPDIR)libc_sec/include \
  113. $(TOPDIR)metadef/inc/common/util \
  114. $(TOPDIR)parser \
  115. third_party/json/include \
  116. third_party/gflags/include \
  117. third_party/protobuf/include \
  118. proto/om.proto \
  119. proto/ge_ir.proto \
  120. proto/task.proto \
  121. proto/insert_op.proto \
  122. LOCAL_SHARED_LIBRARIES := \
  123. libc_sec \
  124. libge_common \
  125. libascend_protobuf \
  126. libslog \
  127. libgraph \
  128. libregister \
  129. liberror_manager \
  130. libge_runner \
  131. libruntime \
  132. libparser_common \
  133. liberror_manager \
  134. LOCAL_STATIC_LIBRARIES := libgflags
  135. LOCAL_LDFLAGS := -lrt -ldl
  136. include $(BUILD_HOST_EXECUTABLE)

图引擎模块(GE)是MindSpore的一个子模块,其代码由C++实现,位于前端模块ME和底层硬件之间,起到承接作用。图引擎模块以ME下发的图作为输入,然后进行一系列的深度图优化操作,最后输出一张可以在底层硬件上高效运行的图。GE针对昇腾AI处理器的硬件结构特点,做了特定的优化工作,以此来充分发挥出昇腾AI处理器的强大算力。在进行模型训练/推理时,GE会被自动调用而用户并不感知。GE主要由GE API和GE Core两部分组成,详细的架构图如下所示