Coder Social home page Coder Social logo

Help-wanted Issue: 使用CUDA编译MegEngine后, 在GPU上的tensor的get_memory_ptr返回的指针无法直接操作,而需要通过CUDA接口操作 about megengine HOT 3 CLOSED

Tumb1eweed avatar Tumb1eweed commented on June 11, 2024
Help-wanted Issue: 使用CUDA编译MegEngine后, 在GPU上的tensor的get_memory_ptr返回的指针无法直接操作,而需要通过CUDA接口操作

from megengine.

Comments (3)

megenginebot avatar megenginebot commented on June 11, 2024

非常感谢您的 Issue!请关注此 Issue,避免漏掉反馈。

from megengine.

cqchu avatar cqchu commented on June 11, 2024

是的,出于性能的考量,megengine 现在显存分配都是使用的 cudaMalloc,想问下是有什么需求需要在 CPU 上去修改 GPU memory 呢?

from megengine.

Tumb1eweed avatar Tumb1eweed commented on June 11, 2024

是的,出于性能的考量,megengine 现在显存分配都是使用的 cudaMalloc,想问下是有什么需求需要在 CPU 上去修改 GPU memory 呢?

哦倒没有什么需求 只是用法习惯上可能比较麻烦而已 访问gpu时需要再加一层cuda的接口访问 如果是因为性能的话就可以理解了 谢谢解答!

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.