Skip to content
i-saac edited this page Oct 14, 2023 · 6 revisions

Welcome to the gpurs wiki!

This wiki will serve as the more in-depth documentation for gpurs. If a page is not hyperlinked below, its documentation is a work in progress. For information on individual functions please visit the RustDocs page, and for more examples check out the unit tests included in the main repository.

Linear Algebra pages

GPU Acceleration Pages

WARNING: The GPU module is locked behind the "gpu_accel" feature flag. This is turned on by default, but can be turned off if your system has no dedicated GPU or you do not have the OpenCL SDK.

Tips and Tricks

  • Declare a type at the top of your file that is equivalent to your desired floating point precision, and use that as the generic parameter for your initializations. This means you only have to change one value to change your entire file's precision instead of changing each of them individually! If you really wanted you could make a global type and import that to change it in one place for your entire project!
type P = f64; // Replace f64 with f32 at any point to change the precision of the whole file!

let identity: Matrix<P> = Matrix::<P>::identity(size);