CUDA Networks
|
Implementation of the Vector::multiply_scalar method for GPU-accelerated multiplication 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 | vectorMultiplyScalarKernel (double *data, double scalar, int size) |
CUDA kernel for multiplying vector elements by a scalar. More... | |
Implementation of the Vector::multiply_scalar method for GPU-accelerated multiplication of a vector by a scalar.
Definition in file vector_multiply_scalar.cu.
__global__ void vectorMultiplyScalarKernel | ( | double * | data, |
double | scalar, | ||
int | size | ||
) |
CUDA kernel for multiplying vector elements by a scalar.
data | Pointer to the vector data. |
scalar | The scalar to multiply by. |
size | Total number of elements in the vector. |
Definition at line 18 of file vector_multiply_scalar.cu.