bug fixes in testmemperf
bug fixes in testmemperf

pimms/DeepCL,Peilong/DeepCL,MiniLight/DeepCL,Peilong/DeepCL,FighterLYL/DeepCL,MiniLight/DeepCL,hughperkins/DeepCL,mrgloom/DeepCL,FighterLYL/DeepCL,mrgloom/DeepCL,MiniLight/DeepCL,Peilong/DeepCL,FighterLYL/DeepCL,hughperkins/DeepCL,hughperkins/DeepCL,pimms/DeepCL,FighterLYL/DeepCL,mrgloom/DeepCL,Peilong/DeepCL,pimms/DeepCL,MiniLight/DeepCL,mrgloom/DeepCL,hughperkins/DeepCL,MiniLight/DeepCL,hughperkins/DeepCL,pimms/DeepCL,Peilong/DeepCL,FighterLYL/DeepCL,mrgloom/DeepCL,pimms/DeepCL