Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 21 17:29
    dangkhoasdc starred libmir/mir
  • Sep 12 20:22
    breandan starred libmir/mir
  • Sep 01 03:04
  • Jul 17 02:49
    shikuijie starred libmir/mir
  • Jul 04 06:01
    tastyminerals commented #403
  • Jul 03 07:09
    9il commented #403
  • Jul 03 05:16
    tastyminerals starred libmir/mir
  • Jul 03 05:15
    tastyminerals closed #403
  • Jul 03 05:15
    tastyminerals commented #403
  • Jul 03 05:13
    tastyminerals commented #403
  • Jul 03 05:12
    tastyminerals commented #403
  • Jul 03 04:03
    9il commented #403
  • Jul 03 01:25
    mridsole starred libmir/mir
  • Jul 02 18:29
    tastyminerals edited #403
  • Jul 02 18:29
    tastyminerals opened #403
  • May 29 23:33
    miguelmartin75 starred libmir/mir
  • Apr 26 05:56
    atsushiKojima starred libmir/mir
  • Mar 31 12:30

    9il on master

    Update README.md (compare)

  • Mar 30 06:00

    9il on v3.2.1

    (compare)

  • Mar 30 06:00

    9il on master

    fix meson (compare)

Nicholas Wilson
@thewilsonator
Ah I see you have a complier for a different programming language. I saw the D projects in your profile got very confused for a moment ;)
Oh well best of luck on your frontend, and I'll see if I can get the different SPIR-V backends to unite and get included in LLVM.
Jakob Bornecrantz
@Wallbraker
Thanks! And I hope I can help out in that process in some form :)
Sebastian Wilzbach
@wilzbach
Hey everyone, while it's very alpha & we haven't announced it yet, run.dlang.io now supports DUB packages :tada:
As this was requested and for mir, I thought I let you know first.
Examples:
Prasun Anand
@prasunanand
Hey everyone, while it's very alpha & we haven't announced it yet, run.dlang.io now supports DUB packages :tada:
:+1:
Nicholas Wilson
@thewilsonator
Hi all, just to let you know, I've almost finished adding LLVM's Polly optimisation to LDC, tiling vectorising and parallelising loops that only have computations of indices and data. This is still very experimental and unless you are using my SPIR-V release of LLVM (OS X) you'll need to compile LLVM and Polly yourself.
Ilya Yaroshenko
@9il
Hi all, cost and immutble ndslices has opIndex primitive now
struct Foo
{
    ContiguousSlice!(1, int) bar;

    int get(size_t i) immutable
    {
        return bar[i];
    }

    int get(size_t i) const
    {
        return bar[i];
    }
}
Petar Kirov
@PetarKirov
@9il why not use inout?
Ilya Yaroshenko
@9il
inout works in this example too
in addition, inout is buggy for struct methods
Petar Kirov
@PetarKirov
No, I was wondering why you didn't use inout for the implementation.
Do you have any examples where it is buggy?
So far I haven't had problems using it in my projects (after I learned how to use it correctly).
Ilya Yaroshenko
@9il
Yes, it is buggy for implementation. There is two opIndex function that are marked with const / immutable. Try to replacr them with single one. The problem is that compiler do not understand that struct is input itself.
So, compiler ask to a inout param
Petar Kirov
@PetarKirov
I don't have a computer handy at the moment, but I'll try to check in a couple of days
Olzhas Adiyatov
@olzhas
hey everyone,
I wonder if you have a plotting library
and if there is a need in one with a matlab like syntax
Nicholas Wilson
@thewilsonator
@olzhas see https://github.com/BlackEdder/ggplotd http://code.dlang.org/search?q=plot for plotting libraries. We don't have one yet for mir.
Nicholas Wilson
@thewilsonator
I got the first dcompute kernels to run successfully! https://forum.dlang.org/post/smrnykcwpllukwtlfzxg@forum.dlang.org
Andrew Benton
@andrewbenton
The dcompute kernels are awesome! Nice work with those!
Ilya Yaroshenko
@9il
Thank you @thewilsonator !
Nicholas Wilson
@thewilsonator
@andrewbenton thanks for the bug reports. Now that we have a working example its time to do some thorough testing.
kerdemdemir
@kerdemdemir
Hi! Instead of compiling LLVM, LDC from the source downloading LDC 1.4 is enough right ? It was written they already using LLVM 4.0 in this precompiled version.
And one more question when I use dub build in source folder of DCompute it is giving me this output :
Error: unrecognized switch '-mdcompute-targets=cuda-210'
Error: unrecognized switch '-oq'
kerdemdemir
@kerdemdemir
Does anyone have any idea about what I am doing wrong
Nicholas Wilson
@thewilsonator
If you are building with dub make sure to specify --compiler=/path/to/ldc2
Nicholas Wilson
@thewilsonator
Otherwise it will likely use dmd instead, which won't work. I should probably put that in an FAQ.
kerdemdemir
@kerdemdemir
Yes it compiled! Thanks a lot
I am just curious meanwhile compiling I never did anything for linking CUDA. How LDC,LLVM or DCompute knows the CUDA header&library locations.
Nicholas Wilson
@thewilsonator
derelict-cuda takes care of the dynamic linking
https://github.com/DerelictOrg/DerelictCUDA which is specified as a dependancy for DCompute so dub takes are of that.
Being D we don't need the headers, our definitions again come from derelict-cuda.
Good luck porting your simulation!
kerdemdemir
@kerdemdemir
Thanks! Soul is willing many things but sadly I am so slow
Ilya Yaroshenko
@9il
Should we add a * b to ndslice for 1d vectors?
Discussion at libmir/mir-algorithm#91
Ilya Yaroshenko
@9il
Asked Netflix about Mir based implementation: Netflix/vectorflow#11
Lets see was they will say)
Ilya Yaroshenko
@9il
PR: element-wise operator overloading libmir/mir-algorithm#99
Shigeki Karita
@ShigekiKarita
@9il I really like this!
Ilya Yaroshenko
@9il
Thanks
kerdemdemir
@kerdemdemir
Guys Hi, this is not directly related with DCompute a bit more general.
I am trying to port my beamforming project to DCompute
The link above is using CUDA and C++ and already working