To use this, build pocl with the patch below and then run your OpenCL program with
POCL_DEBUG=memory
Since you'll be using a patched pocl, maybe you will need ocl-icd to see that. To get that to happen, you can use
this shell script. Save as, maybe, with-my-pocl
:
#! /bin/bash
OCL_ICD_VENDORS=$HOME/shared/pack/pocl-master-install LD_LIBRARY_PATH=$HOME/shared/pack/pocl-master-install/lib:$LD_LIBRARY_PATH exec "$@"
Then run:
POCL_DEBUG=memory with-my-pocl ./my-program 2>out
The resulting file out
can then be read by the parsing script.