[Bug-apl] first shot at parallel APL
Hi, I have finished a first shot at parallel (i.e. multicore) GNU APL: SVN 480. This version computes all scalar functions in parallel if the ravel length of the result exceeds 100. This can make the computation of small (but still > 100) vectors slower than if they were computed sequentially. Therefore parallel execution is not yet the default. To enable it: ./configure make parallel make sudo make install The current version uses some linux-specific features, which will be ported to other platforms later on (if possible). ./configure is supposed to detect this. Some simple benchmarks are promising: X←100⍴2J2 ⍝ 1 Mio complex numbers ⎕SYL[26;2]←1 ⍝ 1 core T←⎕TS ◊ ⊣X⋆X ◊ 1 1 1 24 60 60 1000⊥⎕TS - T 246 ⎕SYL[26;2]←2 ⍝ 2 cores T←⎕TS ◊ ⊣X⋆X ◊ 1 1 1 24 60 60 1000⊥⎕TS - T 136 ⎕SYL[26;2]←3 ⍝ 3 cores T←⎕TS ◊ ⊣X⋆X ◊ 1 1 1 24 60 60 1000⊥⎕TS - T 102 ⎕SYL[26;2]←4 ⍝ 4 cores T←⎕TS ◊ ⊣X⋆X ◊ 1 1 1 24 60 60 1000⊥⎕TS - T 91 The next step will be to find the break-even points of all scalar functions, so that parallel execution is only done when it promises some speedup. Elias, the PointerCell constructor has got one more argument . I have updated emacs-mode and sql accordingly. - you may want to sync back. /// Jürgen
Re: [Bug-apl] aplwrap: another problem with quad-quote
I see it. Thanks. I'll look into this tonight. > GNU APL (without aplwrap): > > x←⍞,0⍴⍞←0⍴' ' > abc > x > abc > ⍴x > 3 > > > APL WRAP: > > x←⍞,0⍴⍞←0⍴' ' > abc > [APLWRAP does something really strange here like repeating a prior line???] > ⍴x > 0 > > Something really wrong. > > Thanks. > > Blake > > > -- "The secret to creativity is knowing how to hide your sources." Albert Einstein http://soundcloud.com/davidlamkins http://reverbnation.com/lamkins http://reverbnation.com/lcw http://lamkins-guitar.com/ http://lamkins.net/ http://successful-lisp.com/
Re: [Bug-apl] aplwrap: another problem with quad-quote
Fixed. I forwarded the patch to Chris. -- Original message-- From: David LamkinsDate: Mon, 2014/09/22 09:41To: bug-apl@gnu.org;Cc: Blake McBride;Chris Moller;Subject:Re: [Bug-apl] aplwrap: another problem with quad-quote I see it. Thanks. I'll look into this tonight.GNU APL (without aplwrap): x←⍞,0⍴⍞←0⍴' 'abc xabc ⍴x3APL WRAP: x←⍞,0⍴⍞←0⍴' 'abc[APLWRAP does something really strange here like repeating a prior line???] ⍴x0Something really wrong.Thanks.Blake-- "The secret to creativity is knowing how to hide your sources." Albert Einsteinhttp://soundcloud.com/davidlamkinshttp://reverbnation.com/lamkinshttp://reverbnation.com/lcwhttp://lamkins-guitar.com/http://lamkins.net/http://successful-lisp.com/