if (condition) {*foundFlag = 1; dst[gid] = gid * crack_cnt + num; break; }
This code is used in ending kernel funtion when password is found(2 AMD 7970 devices and OpenCL platform). *foundFlag is a pointer to a char value,defined in kernel funtion formal parameters as follows:
__global char * foundFlag,
when I Comment * foundFlag = 1,the usage of VGPRs by CodeXL,only use 4 VGPRs Registers:
But when this line code running,the usage of VGPRs increase to 88 VGPRs Registers:
I guarantee that I just modified this line of code, and that foundFlag is only used here. I'm confused.If you can help me solve this problem I will be grateful.(0_0)