veda-rs 1.0.0

High-performance parallel runtime for Rust with work-stealing and adaptive scheduling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod runtime;
pub mod kernel;
pub mod buffer;
pub mod scheduler;

pub use runtime::GpuRuntime;
pub use kernel::{GpuKernel, CompiledKernel};
pub use buffer::{GpuBuffer, BufferPool};
pub use scheduler::GpuScheduler;

use crate::error::Result;

pub async fn execute<K: GpuKernel>(kernel: K) -> Result<Vec<u8>> {
    let runtime = GpuRuntime::get_or_init().await?;
    runtime.execute_kernel(kernel).await
}