Lines Matching refs:DeviceIndex
67 Expected<Stream> createStream(int DeviceIndex) override;
69 Expected<Event> createEvent(int DeviceIndex) override;
72 int DeviceIndex) override;
79 Expected<void *> rawMallocD(ptrdiff_t ByteCount, int DeviceIndex) override;
86 int DeviceIndex) override;
88 int DeviceIndex) override;
156 for (cl_uint DeviceIndex = 0; DeviceIndex < NumDevices; ++DeviceIndex) in create() local
158 Devices[DeviceIndex]); in create()
192 Expected<Stream> OpenCLPlatform::createStream(int DeviceIndex) { in createStream() argument
195 Contexts[DeviceIndex], FullDeviceIDs[DeviceIndex].DeviceID, in createStream()
199 return constructStream(this, DeviceIndex, Queue, openCLDestroyStream); in createStream()
221 Expected<Event> OpenCLPlatform::createEvent(int DeviceIndex) { in createEvent() argument
223 cl_event Event = clCreateUserEvent(Contexts[DeviceIndex], &Result); in createEvent()
228 return constructEvent(this, DeviceIndex, new cl_event(Event), in createEvent()
239 int DeviceIndex) { in createProgramFromSource() argument
243 cl_program Program = clCreateProgramWithSource(Contexts[DeviceIndex], 1, in createProgramFromSource()
247 cl_device_id DeviceID = FullDeviceIDs[DeviceIndex].DeviceID; in createProgramFromSource()
255 int DeviceIndex) { in rawMallocD() argument
257 cl_mem Memory = clCreateBuffer(Contexts[DeviceIndex], CL_MEM_READ_WRITE, in rawMallocD()