Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using QtOpenCL with multiple devices
Forum Updated to NodeBB v4.3 + New Features

Using QtOpenCL with multiple devices

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elmigranto
    wrote on last edited by
    #1

    I have 2 videocards (2 GPUs each) (Radeon HD 6990). I'm trying to use both of them in my calculations.
    Querying AMD APP platform returns correct number of avail. OpenCL-devices, so I'm creating context with QList< QCLDevice > containing 4 GPUs.

    Then I'm creating QCLProgram using QCLContext::createProgramFromSourceFile().

    @ clContext.create(clDevices)
    clProgram = clContext.createProgramFromSourceFile("test.cl");
    /* setting compilier params... */
    clProgram.build(clCompilierOptions)@

    Problem is, clProgram only sees 1 gpu (clProgram.devices() returns 1). Documentation says:
    @bool QCLProgram::build ( const QList<QCLDevice> & devices, const QString & options = QString() )
    /If devices is not empty, the program will only be built for devices in the specified list.
    Otherwise the program will be built for all devices on the program's context.
    /@
    However, using QList<QCLDevice>() as first param leads to same result.

    Any advices? Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved