I have started now to learn openCL. I am doing the tutorial now but I can’t really grasp the idea is of host could someone explain.Thank you
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OpenCL is a system designed to support massively parallel processing such as can be performed by modern graphics chips (GPUs). In the OpenCL paradigm, a “host program” is the outer control logic that performs the configuration for a GPU-based application. This host program normally would run on a general purpose CPU (such as the x86-compatible main processor in most desktop PCs). An OpenCL program also contains one or more “kernel” functions that are designed for parallel execution on the GPU.
Once all of the buffers and kernels are configured, the host program will call something like
which will begin execution of the kernel on the GPU.
Depending on your target platform, things could be a little different. For example, OpenCL does not specifically require the existence of a GPU. In can instead execute the kernel as multiple threads on the same CPU that runs the host program.
Summary of OpenCL nomenclature: