| 327 | } |
| 328 | |
| 329 | void dumpFile(void *dData, int data_bytes, const char *file_name) |
| 330 | { |
| 331 | void *hData = malloc(data_bytes); |
| 332 | checkCudaErrors(cudaMemcpy(hData, dData, data_bytes, cudaMemcpyDeviceToHost)); |
| 333 | sdkDumpBin(hData, data_bytes, file_name); |
| 334 | free(hData); |
| 335 | } |
| 336 | |
| 337 | template <class T> void dumpBuffer(T *d_buffer, int nelements, int size_element) |
| 338 | { |
no test coverage detected