mirror of
https://github.com/lordmathis/CUDANet.git
synced 2025-11-05 17:34:21 +00:00
Add matrix math kernels
This commit is contained in:
19
include/kernels/matrix_math.cuh
Normal file
19
include/kernels/matrix_math.cuh
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef MATRIX_MATH_H
|
||||
#define MATRIX_MATH_H
|
||||
|
||||
__global__ void mat_vec_mul_kernel(
|
||||
const float* d_matrix,
|
||||
const float* d_vector,
|
||||
float* d_output,
|
||||
int w,
|
||||
int h
|
||||
);
|
||||
|
||||
__global__ void vec_vec_add_kernel(
|
||||
const float* d_vector1,
|
||||
const float* d_vector2,
|
||||
float* d_output,
|
||||
int w
|
||||
);
|
||||
|
||||
#endif // MATRIX_MATH_H
|
||||
Reference in New Issue
Block a user