Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 2:59 PM, ponce wrote: Sure, the licensing of Derelict probably allows it, and deimos and Derelict are complimentary anyway. Thanks. I think I'll give it a try and see what it takes to get a simple example working.

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
On Saturday, 4 April 2015 at 17:21:45 UTC, Walter Bright wrote: On 4/4/2015 3:45 AM, weaselcat wrote: I really think you're barking up the wrong tree here - cuda is a closed proprietary solution only implemented by one vendor effectively cutting off anyone that doesn't work with nvidia hardwar

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
On Saturday, 4 April 2015 at 17:16:19 UTC, Walter Bright wrote: On 4/4/2015 4:29 AM, ponce wrote: On Saturday, 4 April 2015 at 09:50:09 UTC, Walter Bright wrote: * the example shown is useless The problem with example is that someone have to maintain them. For DerelictBgfx we removed all tra

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 3:45 AM, weaselcat wrote: I really think you're barking up the wrong tree here - cuda is a closed proprietary solution only implemented by one vendor effectively cutting off anyone that doesn't work with nvidia hardware. That's right. On the other hand, 1. Nvidia hardware is pervas

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 4:29 AM, ponce wrote: On Saturday, 4 April 2015 at 09:50:09 UTC, Walter Bright wrote: * the example shown is useless The problem with example is that someone have to maintain them. For DerelictBgfx we removed all translated examples. So the Derelict policy is to remove example to

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 4:16 AM, ponce wrote: Also consider costs: NVIDIA will artificially limit the speed of pinned memory transferts to push you to buy expensive $3000 discrete GPUs. They have segmented the market to make the most of people performance-starved. It goes to the point that you are left with

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 3:58 AM, John Colvin wrote: On Saturday, 4 April 2015 at 10:07:16 UTC, Walter Bright wrote: On 4/4/2015 2:16 AM, John Colvin wrote: On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html http://code.dlang.org/packages/derel

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
On Saturday, 4 April 2015 at 09:50:09 UTC, Walter Bright wrote: * the example shown is useless The problem with example is that someone have to maintain them. For DerelictBgfx we removed all translated examples. So the Derelict policy is to remove example to avoid them becoming out of date.

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
On Saturday, 4 April 2015 at 10:26:27 UTC, Walter Bright wrote: On 4/4/2015 3:04 AM, weaselcat wrote: PR? Exactly! The idea is that GPUs can greatly accelerate code (2x to 1000x), and if D wants to appeal to high performance computing programmers, we need to have a workable way to program t

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
Also consider costs: NVIDIA will artificially limit the speed of pinned memory transferts to push you to buy expensive $3000 discrete GPUs. They have segmented the market to make the most of people performance-starved. It goes to the point that you are left with $3000 GPUs that are slower than

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
On Saturday, 4 April 2015 at 10:03:56 UTC, Walter Bright wrote: On 4/4/2015 2:35 AM, ponce wrote: On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html I wrote the Driver and Runtime API bindings for https://github.com/DerelictOrg/Dere

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread John Colvin via Digitalmars-d
On Saturday, 4 April 2015 at 10:07:16 UTC, Walter Bright wrote: On 4/4/2015 2:16 AM, John Colvin wrote: On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html http://code.dlang.org/packages/derelict-cuda I know you have interest in CU

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 10:26:27 UTC, Walter Bright wrote: On 4/4/2015 3:04 AM, weaselcat wrote: PR? Exactly! The idea is that GPUs can greatly accelerate code (2x to 1000x), and if D wants to appeal to high performance computing programmers, we need to have a workable way to program t

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Dmitri Makarov via Digitalmars-d
On Saturday, 4 April 2015 at 09:50:09 UTC, Walter Bright wrote: * there are no examples of actually running code on a GPU I can contribute at least three examples running code on a GPU (the domains are neural networks, bioinformatics, and grid traversal -- these are my ports to D/OpenCL of Ro

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Rikki Cattermole via Digitalmars-d
On 4/04/2015 11:26 p.m., Walter Bright wrote: On 4/4/2015 3:04 AM, weaselcat wrote: PR? Exactly! The idea is that GPUs can greatly accelerate code (2x to 1000x), and if D wants to appeal to high performance computing programmers, we need to have a workable way to program the GPU. At this poi

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 3:04 AM, weaselcat wrote: PR? Exactly! The idea is that GPUs can greatly accelerate code (2x to 1000x), and if D wants to appeal to high performance computing programmers, we need to have a workable way to program the GPU. At this point, it doesn't have to be slick or great, bu

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Dmitri Makarov via Digitalmars-d
On Saturday, 4 April 2015 at 10:03:56 UTC, Walter Bright wrote: It's slower: However, it's an open standard, will improve, and will be available on devices of any vendor interested in implementing the compiler and the runtime API, which is essentially every vendor of compute devices (CPU, G

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 2:16 AM, John Colvin wrote: On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html http://code.dlang.org/packages/derelict-cuda I know you have interest in CUDA, have you gotten any D code to work with it?

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 09:50:09 UTC, Walter Bright wrote: On 4/4/2015 2:34 AM, weaselcat wrote: On Saturday, 4 April 2015 at 09:24:07 UTC, Walter Bright wrote: If the latter is obsolete, it should perhaps be updated to point to the newer one. The svn one is the first google hit for Derel

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 2:35 AM, ponce wrote: On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html I wrote the Driver and Runtime API bindings for https://github.com/DerelictOrg/DerelictCUDA And the one thing I've done with them is loading the fu

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/4/2015 2:34 AM, weaselcat wrote: On Saturday, 4 April 2015 at 09:24:07 UTC, Walter Bright wrote: If the latter is obsolete, it should perhaps be updated to point to the newer one. The svn one is the first google hit for Derelict. Top 3 results for me for `dlang derelict` are all his githu

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread ponce via Digitalmars-d
On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html I wrote the Driver and Runtime API bindings for https://github.com/DerelictOrg/DerelictCUDA And the one thing I've done with them is loading the functions, create a context and de

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 09:24:07 UTC, Walter Bright wrote: If the latter is obsolete, it should perhaps be updated to point to the newer one. The svn one is the first google hit for Derelict. Top 3 results for me for `dlang derelict` are all his github page/projects, did you just google

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Walter Bright via Digitalmars-d
On 4/3/2015 11:12 PM, weaselcat wrote: On Saturday, 4 April 2015 at 02:59:46 UTC, Rikki Cattermole wrote: On 4/04/2015 3:49 p.m., Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html Honestly, I don't think anyone has even tried to create bindings. Let alone use it. Although

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread John Colvin via Digitalmars-d
On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html http://code.dlang.org/packages/derelict-cuda

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Dmitri Makarov via Digitalmars-d
The programmer describes the computations to be done on a device, invokes the clop compiler via mixin expression passing the string describing the computations in an OpenCL-like syntax. The compiler returns D code that includes the generated OpenCL kernel and all the boiler plate code. The computat

Re: Has anyone used D with Nvidia's Cuda?

2015-04-04 Thread Vlad Levenfeld via Digitalmars-d
On Saturday, 4 April 2015 at 06:36:49 UTC, Dmitri Makarov wrote: On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html No, but I'm building an embedded dsl that will allow to generate opencl kernels and supporting boilerplate opencl api

Re: Has anyone used D with Nvidia's Cuda?

2015-04-03 Thread Dmitri Makarov via Digitalmars-d
On Saturday, 4 April 2015 at 02:49:16 UTC, Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html No, but I'm building an embedded dsl that will allow to generate opencl kernels and supporting boilerplate opencl api calls at compile-time. it's called clop (openCL OPtimizer). It us

Re: Has anyone used D with Nvidia's Cuda?

2015-04-03 Thread weaselcat via Digitalmars-d
On Saturday, 4 April 2015 at 02:59:46 UTC, Rikki Cattermole wrote: On 4/04/2015 3:49 p.m., Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html Honestly, I don't think anyone has even tried to create bindings. Let alone use it. Although I think there are OpenCL bindings floa

Re: Has anyone used D with Nvidia's Cuda?

2015-04-03 Thread Rikki Cattermole via Digitalmars-d
On 4/04/2015 3:49 p.m., Walter Bright wrote: http://www.nvidia.com/object/cuda_home_new.html Honestly, I don't think anyone has even tried to create bindings. Let alone use it. Although I think there are OpenCL bindings floating around which has a similar purpose.

Has anyone used D with Nvidia's Cuda?

2015-04-03 Thread Walter Bright via Digitalmars-d
http://www.nvidia.com/object/cuda_home_new.html