Giter VIP home page Giter VIP logo

Comments (6)

zhangheng408 avatar zhangheng408 commented on May 18, 2024

已经正确设置LIBCUDA_PATH环境变量。是否是有其他选项或配置需要注意?

from megengine.

zhangheng408 avatar zhangheng408 commented on May 18, 2024

而且正常情况下,第一次getLastError()之后,第二次getLastError()应该不会报错的。

from megengine.

zhangheng408 avatar zhangheng408 commented on May 18, 2024

我使用的环境是 CUDA 10.1.168 , driver 418.67, V100显卡。满足官网所属环境要求

from megengine.

megvii-mge avatar megvii-mge commented on May 18, 2024

感谢您对 MegEngine 项目的关注,您可以用 ldd 命令看一下 _internal 下的动态库 .so 文件指向的 cuda 路径

from megengine.

windreamer avatar windreamer commented on May 18, 2024

@zhangheng408 如果您了解 LIBCUDA_PATH 环境变量,您应该是已经看过 cuda-stub 相关的代码

为了使得 MegEngine 可以正确的打包为 manylinux2010 标准的wheel包,同时不需要包含 libcuda.so 驱动,MegEngine 包含了一个 cuda-stub 的 so 用来将相关请求转发到系统的 libcuda.so 中

具体代码您可以参考: https://github.com/MegEngine/MegEngine/blob/master/dnn/cuda-stub/src/libcuda.cpp

所以你可以观察一下是否您的驱动(libcuda.so) 是在 LIBCUDA_PATH 的路径中,或者在 cuda-stub 可以找到的标准路径中

从目前的返回值(35)来看,cuda-stub是找到了一个 驱动,但是这个驱动过旧了,所以可能您需要检查是否正确配置了环境。

更多情况也希望您能补充更多日志来协助我们分析

from megengine.

xxr3376 avatar xxr3376 commented on May 18, 2024

closed due to inactive.

from megengine.

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.