Skip to content

Implementing multiple GPU support? #48

@edude03

Description

@edude03

I'm trying to write some quick example code using rust + opencl, I'm pretty new to rust but when I run

let (device, ctx, queue) = opencl::util::create_compute_context_prefer(opencl::util::PreferedType::GPUPrefered).unwrap();
let (device1, ctx1, queue1) = opencl::util::create_compute_context_prefer(opencl::util::PreferedType::GPUPrefered).unwrap();

println!("{}", device.name()); //GT120
println!("{}", device1.name()); //GT120

Both of my device names are "Geforce GT120". In my PC however I have a GT120 in addition to a Radeon 7970.

Looking at the code I see that multiple devices are a TODO, what needs to be done to implement this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions