Re: Red-Black Gauss-seidel with mir

2020-09-15 Thread Christoph via Digitalmars-d-learn
On Monday, 14 September 2020 at 14:32:08 UTC, 9il wrote: For a release performance, it should be run in release mode ``` dub build --build=release --compiler=ldc2 ``` I expect it will speed up the slow version a few times. Oh yes, that made both versions much faster! Thank you very much!

Re: Red-Black Gauss-seidel with mir

2020-09-14 Thread 9il via Digitalmars-d-learn
On Monday, 14 September 2020 at 09:50:16 UTC, Christoph wrote: Hi Ilya, On Sunday, 13 September 2020 at 19:29:31 UTC, 9il wrote: [...] I have tested it with dmd and ldc and called them just with $ dub build --compiler=ldc(dmd) with no more configurations in the dub.json file. [...] On

Re: Red-Black Gauss-seidel with mir

2020-09-14 Thread Christoph via Digitalmars-d-learn
Hi Ilya, On Sunday, 13 September 2020 at 19:29:31 UTC, 9il wrote: More details are required. What compiler and command line has been used? I have tested it with dmd and ldc and called them just with $ dub build --compiler=ldc(dmd) with no more configurations in the dub.json file. I have

Re: Red-Black Gauss-seidel with mir

2020-09-13 Thread 9il via Digitalmars-d-learn
On Sunday, 13 September 2020 at 14:48:30 UTC, Christoph wrote: Hi all, I am trying to implement a sweep method for a 2D Red-black Gauss-Seidel Solver with the help of mir and its slices. The fastest Version I discovered so far looks like this: ``` void sweep(T, size_t Dim : 2, Color color)(in

Red-Black Gauss-seidel with mir

2020-09-13 Thread Christoph via Digitalmars-d-learn
Hi all, I am trying to implement a sweep method for a 2D Red-black Gauss-Seidel Solver with the help of mir and its slices. The fastest Version I discovered so far looks like this: ``` void sweep(T, size_t Dim : 2, Color color)(in Slice!(T*, 2) F, Slice!(T*, 2) U, T h2) { const auto m =