GithubHelp home page GithubHelp logo

API remoting using the `onnx_dump` or `cudart` fails because the cuda program on the guest calls the API `cuGetExportTable` which is not implemented. about ava HOT 2 CLOSED

Abhishekghosh1998 avatar Abhishekghosh1998 commented on June 12, 2024
API remoting using the `onnx_dump` or `cudart` fails because the cuda program on the guest calls the API `cuGetExportTable` which is not implemented.

from ava.

Comments (2)

yuhc avatar yuhc commented on June 12, 2024 1

Hi- Sorry for the late reply. This is a known issue. We haven't supported cuGetExportTable, because it's a non-public API and we don't yet understand its syntax. cuGetExportTable is usually called by some cudnn, cublas APIs, iirc, but it looks odd to me that your sample program also triggers the call.

from ava.

Abhishekghosh1998 avatar Abhishekghosh1998 commented on June 12, 2024

@yuhc Thanks for your reply.

I figured out the issue that I was facing with cuGetExportTable​. It was caused by a setup configuration actually. I was compiling the programs with the nvcc​​ command simply as follows:

nvcc -o toy toy.cu​

The above command statically linked the libcudart​ with the executable. As a result, the interception happened at the CUDA driver API (the calls made to the driver API by the runtime API). So, I changed the option accordingly:

​nvcc -o toy toy.cu --cudart shared​

Some runtime API functions might be internally calling that cuGetExportTable​​ function. If the interception is done at the runtime API level, it does not pose an issue because this cuGetExportTable call then gets executed on the host, and the result of the runtime API that makes this call is sent back to the guest.

I would like to thank @hfingler for his guidance, that the issue had something to do with the setup. It gave me the confidence to fine-tune the area to twig accordingly.

from ava.

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.