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