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