Thread overview
DCompute v0.1.0 supporting OpenCL 2.1+ and CUDA
Oct 15, 2017
Nicholas Wilson
Oct 15, 2017
Ilya Yaroshenko
Oct 15, 2017
Nicholas Wilson
Oct 18, 2017
Walter Bright
Oct 18, 2017
Nicholas Wilson
October 15, 2017
I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for computationally intensive workloads.

https://github.com/libmir/dcompute/releases/tag/v0.1.0

Thanks to all who helped make this happen.

Mike, want me to do another blog post about this and the CUDA support?

P.S: can those who answer foundation@dlang.org please tell me what you think of my plan to advance the development and exposure of DCompute?



October 15, 2017
On Sunday, 15 October 2017 at 05:57:35 UTC, Nicholas Wilson wrote:
> I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for computationally intensive workloads.
>
> https://github.com/libmir/dcompute/releases/tag/v0.1.0
>
> Thanks to all who helped make this happen.
>
> Mike, want me to do another blog post about this and the CUDA support?
>
> P.S: can those who answer foundation@dlang.org please tell me what you think of my plan to advance the development and exposure of DCompute?

Nicholas, could you please create an example with mir.ndslice and mir.math.common? --Ilya
October 15, 2017
On Sunday, 15 October 2017 at 06:58:19 UTC, Ilya Yaroshenko wrote:
> On Sunday, 15 October 2017 at 05:57:35 UTC, Nicholas Wilson wrote:
>> I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for computationally intensive workloads.
>>
>> https://github.com/libmir/dcompute/releases/tag/v0.1.0
>>
>> Thanks to all who helped make this happen.
>>
>> Mike, want me to do another blog post about this and the CUDA support?
>>
>> P.S: can those who answer foundation@dlang.org please tell me what you think of my plan to advance the development and exposure of DCompute?
>
> Nicholas, could you please create an example with mir.ndslice and mir.math.common? --Ilya

using ndslice should be no problem, mir.math.common will not work for OpenCL as is because the SPIR-V backend does not use the LLVM intrinsics. Instead I have to do things like
https://github.com/libmir/dcompute/blob/master/source/dcompute/std/opencl/index.d#L17
to get the functions correct. Hopefully that will be resolved when I get the backend merged into LLVM, but that won't happen until (hopefully shortly) after IWOCL in mid may.

In the mean time I need to create a dispatcher similar to https://github.com/libmir/dcompute/blob/master/source/dcompute/std/index.d with `__dcompute_reflect` all over the place to get things to work.
October 18, 2017
On 10/14/2017 10:57 PM, Nicholas Wilson wrote:
> I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for computationally intensive workloads.
> 
> https://github.com/libmir/dcompute/releases/tag/v0.1.0
> 
> Thanks to all who helped make this happen.

This is great work! Thank you!


> P.S: can those who answer foundation@dlang.org please tell me what you think of my plan to advance the development and exposure of DCompute?

I don't seem to have received that. Can you send it to my regular email address, please?

October 18, 2017
On Wednesday, 18 October 2017 at 09:21:29 UTC, Walter Bright wrote:
> On 10/14/2017 10:57 PM, Nicholas Wilson wrote:
>> I am very pleased to announce the first proper release of DCompute, a framework for heterogeneous computing for D. It wraps the OpenCL and CUDA runtimes to run compute kernels for computationally intensive workloads.
>> 
>> https://github.com/libmir/dcompute/releases/tag/v0.1.0
>> 
>> Thanks to all who helped make this happen.
>
> This is great work! Thank you!
>
>
>> P.S: can those who answer foundation@dlang.org please tell me what you think of my plan to advance the development and exposure of DCompute?
>
> I don't seem to have received that. Can you send it to my regular email address, please?

Its fine, Andrei replied. The plan is to present at IWOCL but I'm sure he'll fill you in on the details.