Giter VIP home page Giter VIP logo

Comments (8)

gsq7474741 avatar gsq7474741 commented on May 22, 2024 2

用官方docker也会报错 @gglin001

from cinn.

zhhsplendid avatar zhhsplendid commented on May 22, 2024 1

我们这边正在查看中,对于您快速解决,可否先注释掉 cinn/auto_schedule/cost_model/CMakeLists.txt 中的

cc_test(test_cost_model SRCS cost_model_test.cc cost_model.cc DEPS pybind gtest_main)

target_link_libraries(test_cost_model ${PYTHON_LIBRARIES})

from cinn.

iclementine avatar iclementine commented on May 22, 2024

错误看起来和 pthread 找不到有关。
图片

但是系统上 libpthread-stubs0-dev 是安装了的。

from cinn.

iclementine avatar iclementine commented on May 22, 2024

Same Issue as #754

from cinn.

iclementine avatar iclementine commented on May 22, 2024

最新的发现是,link 到 python library 失败的问题。而不是 pthread 的问题。

find_package(PythonInterp ${PY_VERSION} REQUIRED)
find_package(PythonLibs ${PY_VERSION} REQUIRED)


cc_test(test_cost_model SRCS cost_model_test.cc cost_model.cc DEPS pybind gtest_main)

target_link_libraries(test_cost_model ${PYTHON_LIBRARIES})

去掉这一行 target_link_libraries(test_cost_model ${PYTHON_LIBRARIES}) 可以在 -DWITH_TESTONG=OFF 的情况下生成 build system 以及编译成功。但是为何无法成功 link python library 原因未知。

from cinn.

zhhsplendid avatar zhhsplendid commented on May 22, 2024

我们当前直接在镜像中使用Python3.9没有问题,没有复现相关现象。从issue描述上看,现在应该是和虚环境有关,我们将进一步搭建虚环境,跟踪查看一下,这个是什么问题。

from cinn.

BiynXu avatar BiynXu commented on May 22, 2024

这个问题是由于在-DWITH_TESTONG=OFF 的情况下,test_cost_model没有生成,因此链接出现问题。
请参考#890

from cinn.

BiynXu avatar BiynXu commented on May 22, 2024

找不到pthread的报错并不是pthread本身的问题,在解决了上面的链接问题后就不会出现这个log了。#890

from cinn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.