OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1686 Discussions

Conformance and performance of multi-threads ocl processing


I have questions about the conformance and performance of belowing 2 user case:

  1. There are N (N >= 2) host-side threads, which setup ocl and do processing indepently. (From clGetPlatformIDs, clGetDeviceIDs, clCreateContext, clCreateCommandQueue to clEnqueueNDRangeKernel...).
  2. Same number host threads (N threads). Setup ocl (including clGetPlatformIDs, clGetDeviceIDs, clCreateContext, clCreateCommandQueue) before creating threads, and then these threads do clEnqueueNDRangeKernel to the same commandQueue. It means host threads will share clContext and clCommandQueue.
    My questions are:
    • Is there any conformance issue in case 1?
    • Does case 1 will have performance loss (consume more cpu or gpu) compared with case2?
Labels (1)
0 Kudos
0 Replies