A simple script based on pyopencl that compiles all kernels in a given source file and prints some statistics on their resource usage.
Note that currently only AMD GPUs are supported as a target for this analysis.
analyze.py
– The analysis script.
samples.cl
– Contains sample kernels.