Skip to content
Discussion options

You must be logged in to vote

producerOpenCL is a JSON array. Eeach element is one device's own config (you can see this in your own snippet, since it opens with [). To use both GPUs, don't edit the existing entry... add a second object alongside it:

"producerOpenCL": [
  {
    "platformIndex": 0,
    "deviceType": -1,
    "deviceIndex": 0,
    ...
  },
  {
    "platformIndex": 0,
    "deviceType": -1,
    "deviceIndex": 1,
    ...
  }
]

Each entry runs as its own independent producer, so both GPUs work in parallel.

The likely reason your earlier attempts didn't work: deviceIndex is scoped per platform, not global across all GPUs in the system. If both your GPUs are the same vendor (e.g. two NVIDIA cards), they're alm…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bernardladenthin
Comment options

You must be logged in to vote
3 replies
@Andrewp9
Comment options

@bernardladenthin
Comment options

@Andrewp9
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants