2

I'm in the process of setting up Torch on OSX on a 2015 macbook pro with a Radeon GPU using this library (cltorch) for OpenCL support

I can successfully run Torch scripts now, but running this test script which outputs the device and platform being used I get:

Using Apple , OpenCL platform: Apple
Using OpenCL device: Iris Pro

Obviously, I want torch to run on Radeon instead of the integrated Iris, but I have no idea how to do that.

Christopher Reid
  • 4,318
  • 3
  • 35
  • 74

1 Answers1

2

You can use cltorch.setDevice to choose the device, like:

cltorch.setDevice(2)
Hugh Perkins
  • 7,975
  • 7
  • 63
  • 71