| 79 | } |
| 80 | |
| 81 | void initDevice(int devNum) |
| 82 | { |
| 83 | int dev = devNum; |
| 84 | cudaDeviceProp deviceProp; |
| 85 | CHECK(cudaGetDeviceProperties(&deviceProp,dev)); |
| 86 | printf("Using device %d: %s\n",dev,deviceProp.name); |
| 87 | CHECK(cudaSetDevice(dev)); |
| 88 | |
| 89 | } |
| 90 | void checkResult(float * hostRef,float * gpuRef,const int N) |
| 91 | { |
| 92 | double epsilon=1.0E-8; |
nothing calls this directly
no outgoing calls
no test coverage detected