| 159 | } |
| 160 | |
| 161 | template <class T> void GpuArray<T>::allocDevice() |
| 162 | { |
| 163 | checkCudaErrors(cudaMalloc((void **)&m_dptr[0], m_size * sizeof(T))); |
| 164 | |
| 165 | if (m_doubleBuffer) { |
| 166 | checkCudaErrors(cudaMalloc((void **)&m_dptr[1], m_size * sizeof(T))); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | template <class T> void GpuArray<T>::freeDevice() |
| 171 | { |
nothing calls this directly
no outgoing calls
no test coverage detected