Emu: Language for Programming GPUs in Rust

Emu: Language for Programming GPUs in Rust

Emu is a high-level language for programming GPUs. Here are some example functions…

{ (num_particles , num_moles ) { num_particles num_moles L; } (global_particles_x [ ], global_particles_y , global_particles_z ) { global_particles_z[ ( )] nm; global_particles_x[ ( )] cm; global_particles_y[ ( )] cm; } (global_particles_r [ ]) { global_particles_r[ ( )] TAU; } // n is the dimension of the matrices // a and b are the matrices to be multiplied, c is the result (n , global_a [ ], global_b [ ], global_c [ ]) { i: ( ); j: ( ); k . n { global_c[i n j] global_a[i n k] global_b[k n j]; } } }

To get started programming GPUs with Emu, check out the book, the examples, and the crate itself.

Source: github.com