Code is able to get power consumption from MIC card.
Tested on OpenCL programs. (brdr2d).
shared memory access needs to be careful.
 initEnergy = readSharedMemory();
 the result of the above is random value.
rather the code used this:
  readSharedMemory(&initEnergy);