We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi.
I just start grabbing ARM Mali GPU (T628-MP6)
I was wondering if there is a way to compile opencl application (including .cl file) by using llvm or other open-source tools.
Any information would be helpful.
Thank you.
OpenCL is just a C API, so any C compiler should work for the application, provided you can match the target ABI. There are ARM builds supporting the LLVM C language frontend (Clang).
The OpenCL kernels must be compiled on the target device at runtime - the compiler is shipped as part of the drivers and targeted as the GPU running on the device.
Cheers, Pete
If I understand correctly, there is no way to modify the OpenCL kernel in assembly level, right?
Correct.
HTH,
Pete
Thank you for information.
What I want to do is that modifying the OpenCL kernel in assembly level.
Host code can be compiled by using llvm, but I want to modify the OpenCL kernel code during run-time.
Is there any way to modify the OpenCL kernel code in assembly level during run-time?
Regards,
Haeseung