Matrix_Operations_Cuda
Matrix_Operations_Cuda is a Rust crate for performing matrix operations using CUDA
Installation
-
Matrix_Operations_Cuda
Add the following to your Cargo.toml file:
[]
= "0.1.0"
-
Matrix_Operations
To works with matrix_operations_cuda, you need to install the core matrix_operations from matrix_operations
Add the following to your Cargo.toml file:
[]
= "0.1.3"
-
CUDA
This crate does NOT include CUDA itself. You need to install on your own. the official installer
Usage
This crate allow to use common operations using cuda:
use matrix;
use ;
let cuda_env;
unsafe
let m1 = matrix!;
let m2 = matrix!;
let m3;
unsafe
assert_eq!;
assert_eq!;
let m4;
unsafe
assert_eq!;
assert_eq!;
let m5;
unsafe
assert_eq!;
assert_eq!;
You also can import your own module from a .ptx file or from a module data as Vec<u8>
use *;
use CudaEnv;
use CudaModule;
use ;
use apply_function_matrix;
unsafe
Features
- Initialize a cuda environment
- Launch common operations on matrices
- Import and use custom kernel to perform custom operations on matrices
- Allocate and Free memory in GPU
- Copy data between Host and Device