pyopenCL, openCL, Can't build program on GPU
问题 I have a piece of kernel source which runs on the G970 on my PC but won't compile on my early 2015 MacBook pro with Iris 6100 1536MB graphic. platform = cl.get_platforms()[0] device = platform.get_devices()[1] # Get the GPU ID ctx = cl.Context([device]) # Tell CL to use GPU queue = cl.CommandQueue(ctx) # Create a command queue for the target device. # program = cl.Program(ctx, kernelsource).build() print platform.get_devices() This get_devices() show I have 'Intel(R) Core(TM) i5-5287U CPU @ 2