Hi Ran-GUO,
I not sure that the your modification on the BSP is valid or not, can try to look into this document regarding modifying OpenCL BSP to check if any missing important consideration required.
https://www.intel.co.uk/content/www/uk/en/support/programmable/support-resources/design-guidance/opencl-bsp-support.html
Thanks.
Regards,
Aik Eu