| 467 | |
| 468 | |
| 469 | void gpu_deallocArray(qcomp* amps) { |
| 470 | #if COMPILE_CUDA |
| 471 | |
| 472 | // cudaFree on nullptr is fine |
| 473 | CUDA_CHECK( cudaFree(amps) ); |
| 474 | |
| 475 | #else |
| 476 | error_gpuDeallocButGpuNotCompiled(); |
| 477 | #endif |
| 478 | } |
| 479 | |
| 480 | |
| 481 |
no test coverage detected