CUDA Networks
src
linear_algebra
vector_destructor.cu
Go to the documentation of this file.
1
/**
2
* @file vector_destructor.cu
3
* @brief Implementation of the Vector class destructor.
4
*/
5
#include "
vector.h
"
6
#include <cuda_runtime.h>
7
8
Vector::~Vector
() {
9
// Free the GPU memory allocated for this vector
10
cudaFree(d_data);
11
}
Vector::~Vector
~Vector()
Destroy the Vector object.
Definition:
vector_destructor.cu:8
vector.h
Defines the Vector class for GPU-accelerated vector operations.
Generated by
1.9.1