Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #20049

Re: Parallel computing under Win32Forth

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!postnews2.euro.net!news.wanadoo.nl!not-for-mail
From mhx@iae.nl (Marcel Hendrix)
Subject Re: Parallel computing under Win32Forth
Newsgroups comp.lang.forth
Message-ID <01631309018434@frunobulax.edu> (permalink)
Date Tue, 26 Feb 2013 22:40:02 +0200
References <6e4c628e-a2fd-4113-b85e-fffe7c8bdf47@googlegroups.com>
X-Newsreader iForth 2.0 console (October 21, 2006)
Lines 73
Organization Wanadoo
NNTP-Posting-Date 26 Feb 2013 21:39:55 GMT
NNTP-Posting-Host s529d937f.adsl.online.nl
X-Trace 1361914795 dr2.euro.net 233 82.157.147.127:59915
X-Complaints-To abuse@wanadoo.nl
Xref csiph.com comp.lang.forth:20049

Show key headers only | View raw


josv@planet.nl writes Re: Parallel computing under Win32Forth

> I just released OpenCL for Win32Forth.
> With OpenCL it is possible to perform parallel computing 
> on a number of CPU's or GPU's.
[..]
> On my system OpenCL under Win32Forth shows the following:
>
> Running the vector_add test under Win32Forth
> with MultiTaskingClass.f and fmacro.f and WITHOUT OpenCL
> for 3 arrays containing 8,000,000 32-bits floats each on:
> Intel(R) Core(TM) i7 CPU 960  @ 3.20GHz (8 threads)
> 14 times: Elapsed time: 00:00:00.261
[..]
> Running the vector_add test WITH OpenCL under Win32Forth
> for 3 arrays with 8,000,000 32-bits floats each on:
> GeForce 210  (1,238Mhz 2 compute units)
> 14 times: Elapsed time: 00:00:00.592
[..]
> Running the vector_add test WITH OpenCL under Win32Forth
> for 3 arrays with 8,000,000 32-bits floats each on:
> Intel(R) Core(TM) i7 CPU 960  @ 3.20GHz  (3,200Mhz 8 compute units)
> 14 times: Elapsed time: 00:00:00.139
[..]

Do I see correctly that the code using OpenCL is *slower* than the
code not using OpenCL?

> Win32Forth is not the fastest Forth.
> Is anyone able to beat OpenCL by using his favorite 
> Forth-system?


Running the vector_add test under iForth WITHOUT OpenCL
for 3 arrays containing 8,000,000 32-bits floats each with 2 threads
14 times: 0.152 seconds elapsed.
258801744  28.000000e0
258801748  29.400003e0
258801752  58.800007e0
.../ Last 3 /...
290801732  235.199952e6
290801736  235.199984e6
290801740  28.000000e0
----------  ok

Running the vector_add test under iForth WITHOUT OpenCL
for 3 arrays containing 8,000,000 32-bits floats each with 4 threads
14 times: 0.121 seconds elapsed.
258801744  28.000000e0
258801748  29.400003e0
258801752  58.800007e0
.../ Last 3 /...
290801732  235.199952e6
290801736  235.199984e6
290801740  28.000000e0
----------  ok

Running the vector_add test under iForth WITHOUT OpenCL
for 3 arrays containing 8,000,000 32-bits floats each with 8 threads
14 times: 0.104 seconds elapsed.
268304464  28.000000e0
268304468  29.400003e0
268304472  58.800007e0
.../ Last 3 /...
300304452  235.199952e6
300304456  235.199984e6
300304460  28.000000e0
----------  ok

This *NOT* using OpenCL, using iForth's threads.

-marcel

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Parallel computing under Win32Forth josv@planet.nl - 2013-02-26 08:15 -0800
  Re: Parallel computing under Win32Forth Bruno Gauthier <bgauthier@free.fr> - 2013-02-26 19:41 +0100
    Re: Parallel computing under Win32Forth josv@planet.nl - 2013-02-27 04:39 -0800
  Re: Parallel computing under Win32Forth mhx@iae.nl (Marcel Hendrix) - 2013-02-26 22:40 +0200
    Re: Parallel computing under Win32Forth Bernd Paysan <bernd.paysan@gmx.de> - 2013-02-26 23:04 +0100
      Re: Parallel computing under Win32Forth josv@planet.nl - 2013-02-27 04:44 -0800
        Re: Parallel computing under Win32Forth Bernd Paysan <bernd.paysan@gmx.de> - 2013-02-28 02:04 +0100
          Re: Parallel computing under Win32Forth josv@planet.nl - 2013-02-28 07:01 -0800
    Re: Parallel computing under Win32Forth josv@planet.nl - 2013-02-27 04:42 -0800

csiph-web