未验证 提交 50c3632f 编写于 作者: T Tomasz Socha 提交者: GitHub

Fix undefined symbol: shm_open (#47421)

* Fix undefined symbol: shm_open

* Fix for Windows

* Exclude APLLE
上级 c331e2ce
......@@ -47,6 +47,10 @@ if(NOT WIN32)
endif()
endif()
if(UNIX AND NOT APPLE)
list(APPEND ALLOCATOR_DEPS rt)
endif()
if(WITH_ASCEND_CL)
list(APPEND ALLOCATOR_SRCS npu_allocator.cc npu_pinned_allocator.cc)
list(APPEND ALLOCATOR_DEPS npu_info)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册