GithubHelp home page GithubHelp logo

Comments (7)

hsonetta avatar hsonetta commented on July 25, 2024 1

@duckontheweb when I try to run the neuron-rtd container, I get the below error:

`ubuntu@ip-192-168-19-125:~$ sudo docker run --device=/dev/neuron0 --cap-add IPC_LOCK -v /tmp/neuron_rtd_sock/:/sock -it neuron-rtd
nrtd[1]: [NRTD:nrtd_main] nrtd build using:1.1.1402.0
nrtd[1]: [NRTD:nrtd_main] nrtd build using:1.1.1402.0

sh: lspci: command not found
nrtd[1]: [TDRV:tdrv_init_mla_phase1] Could not open the device index:0

nrtd[1]: [TDRV:tdrv_init_mla_phase1] Could not open the device index:0

nrtd[1]: [TDRV:tdrv_destroy_one_mla] close device failed
nrtd[1]: [TDRV:tdrv_destroy_one_mla] close device failed

nrtd[1]: [TDRV:tdrv_destroy] TDRV not initialized
nrtd[1]: [TDRV:tdrv_destroy] TDRV not initialized

nrtd[1]: [NRTD:InitTongas] Failed to initialize devices, error:1
nrtd[1]: [NRTD:InitTongas] Failed to initialize devices, error:1

nrtd[1]: [NRTD:nrtd_main] Failed to initialize devices: , attempt: 1
nrtd[1]: [NRTD:nrtd_main] Failed to initialize devices: , attempt: 1`

Did you face this error? If so, can you please point me in the right diresction?

from aws-neuron-sdk.

awsrjh avatar awsrjh commented on July 25, 2024

duckontheweb -- we will have a look and get back to you.

from aws-neuron-sdk.

awsrjh avatar awsrjh commented on July 25, 2024

We have updated the docs to add the unix: to the socket environment variable :

NEURON_RTD_ADDRESS=unix:/sock/neuron.sock

Please see
https://github.com/aws/aws-neuron-sdk/blob/master/docs/neuron-container-tools/docker-example/README.md

thanks for letting us know.

from aws-neuron-sdk.

duckontheweb avatar duckontheweb commented on July 25, 2024

Thanks, that worked!

I did still have to run chmod o+x /tmp/neuron_rtd_sock in order to run the neuron-rtd container. Is that expected (I didn't see anything about it in the docs) or should I be running my container differently?

from aws-neuron-sdk.

micwade-aws avatar micwade-aws commented on July 25, 2024

You are correct. We missed the chmod operation in the example. Pull request #91 will correct our tutorial to reflect this. Thank you!

from aws-neuron-sdk.

duckontheweb avatar duckontheweb commented on July 25, 2024

@duckontheweb when I try to run the neuron-rtd container, I get the below error:

`ubuntu@ip-192-168-19-125:~$ sudo docker run --device=/dev/neuron0 --cap-add IPC_LOCK -v /tmp/neuron_rtd_sock/:/sock -it neuron-rtd
nrtd[1]: [NRTD:nrtd_main] nrtd build using:1.1.1402.0
nrtd[1]: [NRTD:nrtd_main] nrtd build using:1.1.1402.0

sh: lspci: command not found
nrtd[1]: [TDRV:tdrv_init_mla_phase1] Could not open the device index:0

nrtd[1]: [TDRV:tdrv_init_mla_phase1] Could not open the device index:0

nrtd[1]: [TDRV:tdrv_destroy_one_mla] close device failed
nrtd[1]: [TDRV:tdrv_destroy_one_mla] close device failed

nrtd[1]: [TDRV:tdrv_destroy] TDRV not initialized
nrtd[1]: [TDRV:tdrv_destroy] TDRV not initialized

nrtd[1]: [NRTD:InitTongas] Failed to initialize devices, error:1
nrtd[1]: [NRTD:InitTongas] Failed to initialize devices, error:1

nrtd[1]: [NRTD:nrtd_main] Failed to initialize devices: , attempt: 1
nrtd[1]: [NRTD:nrtd_main] Failed to initialize devices: , attempt: 1`

Did you face this error? If so, can you please point me in the right diresction?

To be honest, it's been so long that I don't recall. We were experimenting with the SDK at my previous employer but ended up not using it, so I'm not sure I'll be of much help. Sorry!

from aws-neuron-sdk.

john-heyer avatar john-heyer commented on July 25, 2024

If you're seeing this error, make sure you stop the neuron runtime running on your instance outside of the container!

from aws-neuron-sdk.

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.