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


Groups > comp.lang.forth > #20051

Re: Parallel computing under Win32Forth

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: Parallel computing under Win32Forth
Date 2013-02-26 23:04 +0100
Organization 1&1 Internet AG
Message-ID <kgjbi1$r7l$1@online.de> (permalink)
References <6e4c628e-a2fd-4113-b85e-fffe7c8bdf47@googlegroups.com> <01631309018434@frunobulax.edu>

Show all headers | View raw


Marcel Hendrix wrote:

> 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?

No, the OpenCL version running on the Core i7 was about twice as fast as the 
Win32Forth code running on said Core i7.  The GeForce 210 is a several year 
old entry-level GPU, so don't expect great OpenCL performance.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

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