0

我们可以在同一设备上拥有多个上下文吗?如果是,那么它是同时可用还是并行(在同一时间点)?

4

1 回答 1

0

Yes you can have multiple OpenCL Contexts on the same device.

Are really asking if you can create multiple context from within the same host process? I don't see any benefits for that configuration, as GPU utilization is controlled from the Command Queues and the order commands are submitted.

The device driver implementation decides how the Contexts are managed. At present, GPU's are not multi-tasking, so Kernels are run as the Device driver decides, I expect first come first served. Roll on the Nvidia K20 ..

于 2012-07-19T17:00:19.417 回答