I am new to opencl, and would like to know if it is possible to integrate opencl with an existing application.
For instance, my application is developed with Visual Studio 2019, are there any GPU Api that can be called by the App to do some gpu calculations abd get the results back to the App?
Or, I would have to rewrite the entire App from scratch using opencl in order to get access to the
gpu integrated with the Intel chip/
Assuming that your application is developed in C/C++, you can install the oneAPI-basetoolkit, to perform the required computation on iGPU using the OpenCL backend. (env variable is SYCL_BE=PI_OPENCL)
Please refer to the links below to get started:
Reference guide for DPC++ (direct programming):
OneDPL for API based programming:
Also, could you let me know what exactly is the calculation that you want to perform on iGPU?
Kindly refer to the below code samples and other resources to get started:
Vector add sample:
I have not heard back from you, so I will go ahead and close this thread from my end. Feel free to post a new question if you require any further assistance from Intel.