Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ilya Yaroshenko
    @9il
    Screen Shot 2016-08-22 at 12.14.59.png
    John Colvin
    @John-Colvin
    very nice
    You may need few runs to see the best result
    Ilya Yaroshenko
    @9il
    For double precision gemm GLAS is 9% slower then OpenBLAS, but this is because unstandrad kernels used in OpenBLAS. This types of kernels are not relevant to AVX512. So, as soon as LLVM have good optimization for AVX512, then GLAS be the fastest BLAS implementation :-)
    BTW, guys Mir needs your stars: https://github.com/libmir/mir
    Thanks @John-Colvin
    John Colvin
    @John-Colvin
    Is there a way one of the most established blas implementations test suites could be ported/used. I can imagine people saying “but what if it’s got bugs in it, my results might end up wrong”.
    Ilya Yaroshenko
    @9il
    Extern CBLAS interace is in this TODO list libmir/mir#296
    I will work on other GLAS routines first, any contribution is very wellcome!
    Ilya Yaroshenko
    @9il
    Quick update for Mir 0.17.0-alpha0 1. xsymm and xhemm now available via symm in GLAS. 2. GLAS API looks more like BLAS now. 3. Documentation style was improved (it is white-and-black for now, contributing are wellcome). http://docs.mir.dlang.io/latest/mir_glas_l3.html
    Do not forget to tha it should be compiled with recent LDC beta and -mcpu=native flag!
    Ilya Yaroshenko
    @9il
    Holywar: Go forward with LLVM and drop DMD BE? ljubobratovicrelja/dcv#52
    Ilya Yaroshenko
    @9il
    @John-Colvin GLAS performance for double precision was fixed libmir/mir#352, v0.18.0-beta0
    drug007
    @drug007
    hello
    what is the best way to get inversed matrix using mir?
    Ilya Yaroshenko
    @9il
    It is not implemented for now. You can use scid shell on top of Lapack for now
    drug007
    @drug007
    ok, thanx
    drug007
    @drug007
    I write a slice to std output and it seems slice elements are being rounded to int values, can it be tuned to print float values?
    Ilya Yaroshenko
    @9il
    Yes, for example for matrix ”%(%(%e%)%)”. See std.format for more details
    drug007
    @drug007
    tnx again, but the problem is still here. I'm porting python script and the python code prints float values, but the D code prints int values... will investigate
    Ilya Yaroshenko
    @9il
    Can you provide code example?
    drug007
    @drug007
    it was just typo
    is it possible to have overloading for slices or some other way to have nice 'P * H.transposed' instead of 'glas.gemm!(double, double, double)(1.0, P, H.transpose, 0, P)'?
    Ilya Yaroshenko
    @9il
    You do not need to specify template arguments
    drug007
    @drug007
    i just took example from doc, start learning
    Ilya Yaroshenko
    @9il
    It is not correct to use P for output. because output can be accessed multiple times and P is input argument (the same is true for BLAS)
    drug007
    @drug007
    oh, I see. I guess it worths to be mentioned in docs to prevent people from that
    Ilya Yaroshenko
    @9il
    Please open a PR when you would have a moment to improve docs
    drug007
    @drug007
    ok
    drug007
    @drug007
    what package for generating random values with normal distribution you use? I use hap for a long time, but it seems to be dead.
    Ilya Yaroshenko
    @9il
    Another one is dstats. Mir will add this too, but it has low priority
    drug007
    @drug007
    thank you
    Sebastian Wilzbach
    @wilzbach
    Yes more random distributions will be added to Mir in the following weeks ;-)
    Ilya Yaroshenko
    @9il
    @wilzbach Do you plan to work on it? I thought you was tired with numeric issues and want to switch to more algorithmical math
    Vang Le
    @biocyberman
    Hi all I got this error when trying to build a package with dub: Error: module stream is in file 'std/stream.d' which cannot be read.
    Does it have something to do with phobos removing stream module? And what is the remplacement for std.stream ?
    John Colvin
    @John-Colvin
    std.stream is gone, there isn't really a replacement as such, you can still use it via code.dlang.org/packages/undead if you need it in your code. Was the package that failed one your own or a public one?
    Vang Le
    @biocyberman
    it's a public one, named biod
    I am new to D and dub, what is the import line to summon this std.stream ? @John-Colvin
    Vang Le
    @biocyberman
    Essentially I want some thing that can provide readString and read from stream, like this:
       /// Constructs the structure from input stream
        this(ref Stream stream) {
            int l_name; // length of the reference name plus one
            stream.read(l_name);
            _name = cast(string)stream.readString(l_name); // keep '\0' at the end
            stream.read(_length);
        }
    John Colvin
    @John-Colvin
    Sorry, got to go out briefly, will try to answer a bit later
    Edwin van Leeuwen
    @BlackEdder
    @biocyberman The easiest way would be to add undead as a dependency to the (dub) project and then replace import std.stream with import undead.stream
    John Colvin
    @John-Colvin
    I have made this PR to BioD to address the issue. biod/BioD#23
    John Colvin
    @John-Colvin
    in the mean-time I suggest you git clone https://github.com/John-Colvin/BioD && dub add-local BioD, then depend on biod-jc instead of biod (e.g. ”dependencies”: { “biod-jc”: “*” } for json or dependency “biod-jc” version=“*” for sdl) until the PR has been merged upstream
    John Colvin
    @John-Colvin
    ignore that last message, my PR was merged very promptly, just depend on the master branch (i.e. ”dependencies”: { “biod”: “~master” } or dependency “biod” version=“~master” until a new release is made