| 88 | |
| 89 | } |
| 90 | void checkResult(float * hostRef,float * gpuRef,const int N) |
| 91 | { |
| 92 | double epsilon=1.0E-8; |
| 93 | for(int i=0;i<N;i++) |
| 94 | { |
| 95 | if(abs(hostRef[i]-gpuRef[i])>epsilon) |
| 96 | { |
| 97 | printf("Results don\'t match!\n"); |
| 98 | printf("%f(hostRef[%d] )!= %f(gpuRef[%d])\n",hostRef[i],i,gpuRef[i],i); |
| 99 | return; |
| 100 | } |
| 101 | } |
| 102 | printf("Check result success!\n"); |
| 103 | } |
| 104 | #endif//FRESHMAN_H |
nothing calls this directly
no outgoing calls
no test coverage detected