| 3303 | |
| 3304 | public: |
| 3305 | unified_array(std::size_t size) : size_(size) { |
| 3306 | if (cudaMallocManaged(&data_, sizeof(type_) * size_) != cudaSuccess) throw std::bad_alloc(); |
| 3307 | } |
| 3308 | |
| 3309 | ~unified_array() noexcept { cudaFree(data_); } |
| 3310 |
nothing calls this directly
no outgoing calls
no test coverage detected