Giter Club home page Giter Club logo

Comments (5)

paolodalberto avatar paolodalberto commented on June 4, 2024

OK: loaded 26 kernels from libvx_nn.so
OK: OpenVX using GPU device#0 (gfx803) [OpenCL 1.2 ] [SvmCaps 0 1]
OK: annCreateInference: successful

I would like to learn how to affect the device selection at this point.

from mivisionx.

kiritigowda avatar kiritigowda commented on June 4, 2024

@paolodalberto the current OpenVX implementation is set to use the OpenCL device 0. The code to set deviceID.

You could also set different devices using the code sample in our app - code

from mivisionx.

rrawther avatar rrawther commented on June 4, 2024

@paolodalberto, the way to do this is to create separate OpenVX and OpenCL contexts for each device and tie them together using vxSetContextAttribute(vx_context_for_device, VX_CONTEXT_ATTRIBUTE_AMD_OPENCL_CONTEXT, cl_context_for_device, flags). A use of this is shown in the above app mentioned by @kiritigowda

from mivisionx.

paolodalberto avatar paolodalberto commented on June 4, 2024

let me see what I can do ... this is not my application so I am not familiar with it.
In principle, I see in the code the ability of use environment variable you may consider to enhance the default setting.

from mivisionx.

kiritigowda avatar kiritigowda commented on June 4, 2024

Here is an environmental variable to choose the target device - AGO_OPENCL_PLATFORM

A list of developer tools is compiled here

Feel free to reopen this issue if you still have problems.

from mivisionx.

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.