CUDA Networks
|
Implementation of the Matrix::divide_scalar method for GPU-accelerated division of a matrix by a scalar. More...
#include "matrix.h"
#include <cuda_runtime.h>
#include <stdexcept>
#include <cfloat>
#include <cmath>
Go to the source code of this file.
Functions | |
__global__ void | divideScalarKernel (double *data, double scalar, int size) |
CUDA kernel for dividing matrix elements by a scalar. More... | |
Implementation of the Matrix::divide_scalar method for GPU-accelerated division of a matrix by a scalar.
Definition in file matrix_divide_scalar.cu.
__global__ void divideScalarKernel | ( | double * | data, |
double | scalar, | ||
int | size | ||
) |
CUDA kernel for dividing matrix elements by a scalar.
data | Pointer to the matrix data. |
scalar | The scalar to divide by. |
size | Total number of elements in the matrix. |
Definition at line 18 of file matrix_divide_scalar.cu.