luqmana / rust-opencl

OpenCL bindings for Rust.
Other
170 stars 42 forks source link

Examples #37

Open okpatil4u opened 10 years ago

okpatil4u commented 10 years ago

Are you going to add examples as well ? They would be really helpful.

eholk commented 10 years ago

Are there particular examples you'd like to see?

okpatil4u commented 10 years ago

May be 2 dimensional heat conduction. I have a chemical engineering background. Example like this will be helpful.

eholk commented 10 years ago

Actually, if you have a specific example already in another language, we could try to do a port to Rust. Right now we just use OpenCL C to write the kernels, so the kernel code should be pretty much the same. Only the host code should have to be different.

okpatil4u commented 10 years ago

This is one the examples from "Cuda by Example". You can find it's code here https://github.com/tpoisot/CUDA-training/blob/master/utils/cuda_by_example/chapter07/heat_2d.cu .