| 1035 | } |
| 1036 | |
| 1037 | ~DeviceDnVecInt() { |
| 1038 | CHECK_CUDA( cudaSetDevice(this->gpu_id) ); |
| 1039 | if (this->vals != nullptr) { |
| 1040 | CHECK_CUDA( cudaFree(this->vals) ); |
| 1041 | this->vals = nullptr; |
| 1042 | } |
| 1043 | // std::cout << "DeviceDnVecInt destructor called!" << std::endl; |
| 1044 | } |
| 1045 | }; |
| 1046 | |
| 1047 | // dense vector wrapper on device: long int type |
nothing calls this directly
no outgoing calls
no test coverage detected