File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,17 @@ if(CANN_INSTALL_DIR)
4646 set (HAVE_CANN OFF )
4747 return ()
4848 endif ()
49+ # * libacl_op_compiler.so
50+ set (lib_acl_op_compiler "${CANN_INSTALL_DIR} /lib64" )
51+ find_library (found_lib_acl_op_compiler NAMES acl_op_compiler PATHS ${lib_acl_op_compiler} NO_DEFAULT_PATH)
52+ if (found_lib_acl_op_compiler)
53+ set (lib_acl_op_compiler ${found_lib_acl_op_compiler} )
54+ message (STATUS "CANN: libacl_op_compiler.so is found at ${lib_acl_op_compiler} " )
55+ else ()
56+ message (STATUS "CANN: Missing libacl_op_compiler.so. Turning off HAVE_CANN" )
57+ set (HAVE_CANN OFF )
58+ return ()
59+ endif ()
4960 # * libgraph.so
5061 set (lib_graph "${CANN_INSTALL_DIR} /compiler/lib64" )
5162 find_library (found_lib_graph NAMES graph PATHS ${lib_graph} NO_DEFAULT_PATH)
@@ -90,6 +101,7 @@ if(CANN_INSTALL_DIR)
90101
91102 set (libs_cann "" )
92103 list (APPEND libs_cann ${lib_ascendcl} )
104+ list (APPEND libs_cann ${lib_acl_op_compiler} )
93105 list (APPEND libs_cann ${lib_opsproto} )
94106 list (APPEND libs_cann ${lib_graph} )
95107 list (APPEND libs_cann ${lib_ge_compiler} )
You can’t perform that action at this time.
0 commit comments