OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1720 Discussions

Suggestion: static code analysis

jogshy
New Contributor I
841 Views
I'm thinking you perhaps could make a small tool to perform static analysis of a kernel... like some C/C++ tools do ( cppcheck, Visual Studio's static code analysis, etc... ).

The idea is to pass a command line app a folder path ( or a set of files ) so all the .cl archives could be parsed and analyzed. If the app finds, for instance, a buffer overrun then the program could emit via stdout/printf a warning.

You could use this app also to detect performance problems ( for example, suggest for unrolls, detect memory misaligments, etc... )

Thanks.
0 Kudos
1 Reply
ARNON_P_Intel
Employee
841 Views

As always, great idea!

We like to see such ideas.

I actually think it might be useful add to the Offline Complier utility already available.

Thanks,

0 Kudos
Reply