digitalmars.D.ldc - GPU / CUDA
- seany (48/48) Mar 17 2021 Hi
- Imperatorn (3/7) Mar 17 2021 Are you on Discord or Slack?
- seany (2/10) Mar 18 2021 You have slack ?
- Imperatorn (2/14) Mar 18 2021 Yup
- seany (3/18) Mar 18 2021 Share a slack link please. i did not receive the discord
- Imperatorn (3/22) Mar 18 2021 You cannot just join slack the same way you can join Discord. You
Hi I am looking for a way to parallelize my machine learning model in D. I have ~100000 neurones, and just the initialization is very tme consuming. I use the pseudocode : foreach( some condition) { foreach (other condition) { allocate a neuron to detect a feature within a segment of an larger image. } } The allocation is successful. But excruciatingly _slow_ - emphasis added. So I tried to get started with dcompute. My dub.json : { "authors": [ "sean" ], "copyright": "Copyright © 2021, sean", "dependencies": { "dlib": "~>0.20.0", "dcompute": "~>0.1.0" }, "description": "cuda test", "license": "proprietary", "name": "cudatest" } My code : compute(CompileFor.deviceOnly) module mykernels; import ldc.dcompute; kernel void mykernel(GlobalPointer!float a,GlobalPointer!float b, float c) { *a = *b + c; } I run it with : dub build --compiler=ldc2 The result is : /usr/include/d/std/array.d(2975,13): Error: TypeInfo cannot be used with -betterC (using latest opensuse version for ldc) I saw this : https://forum.dlang.org/thread/amcxssclbfaczrgqjqeo forum.dlang.org And this : https://speakerdeck.com/shigekikarita/grain-d-language-for-deep-learning?slide=17 I would like to have a step by step guid to handle a pair of foreach loops in dcompute please. Thnak you
Mar 17 2021
On Wednesday, 17 March 2021 at 19:02:58 UTC, seany wrote:Hi I am looking for a way to parallelize my machine learning model in D. [...]Are you on Discord or Slack? https://discord.gg/bMZk9Q4
Mar 17 2021
On Wednesday, 17 March 2021 at 23:13:07 UTC, Imperatorn wrote:On Wednesday, 17 March 2021 at 19:02:58 UTC, seany wrote:You have slack ?Hi I am looking for a way to parallelize my machine learning model in D. [...]Are you on Discord or Slack? https://discord.gg/bMZk9Q4
Mar 18 2021
On Thursday, 18 March 2021 at 09:04:10 UTC, seany wrote:On Wednesday, 17 March 2021 at 23:13:07 UTC, Imperatorn wrote:YupOn Wednesday, 17 March 2021 at 19:02:58 UTC, seany wrote:You have slack ?Hi I am looking for a way to parallelize my machine learning model in D. [...]Are you on Discord or Slack? https://discord.gg/bMZk9Q4
Mar 18 2021
On Thursday, 18 March 2021 at 09:44:19 UTC, Imperatorn wrote:On Thursday, 18 March 2021 at 09:04:10 UTC, seany wrote:Share a slack link please. i did not receive the discord confirmation mailOn Wednesday, 17 March 2021 at 23:13:07 UTC, Imperatorn wrote:YupOn Wednesday, 17 March 2021 at 19:02:58 UTC, seany wrote:You have slack ?Hi I am looking for a way to parallelize my machine learning model in D. [...]Are you on Discord or Slack? https://discord.gg/bMZk9Q4
Mar 18 2021
On Thursday, 18 March 2021 at 12:55:05 UTC, seany wrote:On Thursday, 18 March 2021 at 09:44:19 UTC, Imperatorn wrote:You cannot just join slack the same way you can join Discord. You need to get an invitation. I got one from Sebastian Wilzbach.On Thursday, 18 March 2021 at 09:04:10 UTC, seany wrote:Share a slack link please. i did not receive the discord confirmation mailOn Wednesday, 17 March 2021 at 23:13:07 UTC, Imperatorn wrote:YupOn Wednesday, 17 March 2021 at 19:02:58 UTC, seany wrote:You have slack ?Hi I am looking for a way to parallelize my machine learning model in D. [...]Are you on Discord or Slack? https://discord.gg/bMZk9Q4
Mar 18 2021