CPU affinity in OpenCL

Can we apply procssor affinity in OpenCl? For example, thread # 1 runs on procesor # 5,
thread # 2 runs on procesor # 6, thread # 3 runs on procesor # 7 and so on?

thank

+3
source share
1 answer

You cannot indicate proximity at this low with OpenCL, as far as I know. But, starting with OpenCL 1.2, there is some control over the affinity by subtree using clCreateSubDevices (possibly with one processor in each sub-device using CL_DEVICE_PARTITION_BY_COUNTS, 1) and running a separate kernel on each sub-device.

, , -, OpenCL , , ​​. OpenCL-CPU, clCreateSubDevices .

PDF, " " Intel, , , clCreateSubDevices.

+7

All Articles