Altera_Forum
Honored Contributor
9 years agoWhich OpenCL APIs load kernels to FPGA?
Hello,
I'm running a hello world OpenCL example. I notice that there are two API functions: clCreateProgramWithBinary and clEnqueueNDRangeKernel. I tried to measure the overhead of configuring the fpga through PCIe with this example. I found that the time to run clCreateProgramWithBinary is ~2.5s while it's ~20ms to run clEnqueueNDRangeKernel. I'm wondering which API really program fpga and write the configuration bit stream? Another question is that: if I enqueue hello world kernel serveral times in the same OpenCL program, will the bit stream be written once or every time the kernel is running? Thanks a lot in advance!