Download MetaTrader 5

Scripts: OpenCL Test

To add comments, please log in or register
Automated-Trading
Admin
100941
Automated-Trading 2012.02.08 08:29 

OpenCL Test:

A small example of the Mandelbrot fractal calculation in OpenCL. The OpenCL accelerates calculations of fractal approximately up to 100 times in comparison with the CPU calculations.

Author: Renat Fatkhullin


Mandelbrot set in MQL5, generated using OpenCL

investeo
4100
investeo 2012.02.08 11:41  

You guys are insane - congrats. 

Does the tester also support OpenCL?

 

Ilyas
1209
Ilyas 2012.02.08 12:02  
investeo:

You guys are insane - congrats. 

Does the tester also support OpenCL?

 

Not supported yet.
Janis Smits
732
Janis Smits 2012.02.13 09:35  

As soon i saw "2012.02.13 09:07:19 Terminal GPU: NVIDIA Corporation GeForce 8800 GTS with OpenCL 1.0 (12 units, 1188 MHz, 320 Mb, version 285.62", I was like OMG! OMG!  OMG! OMG! . Straight went to forums. :D

 

 This is coolest thing ever, this would totaly make all the tesing much faster, gpus still progressing in within the Mooore law.

 

Anyways, Im really sight, but still don't know that it will help much, couse  sometimes i put my quad for free to tester cloud, and it's usualy idle. Seems like people ain't testing that much anymore. Any statistics of cloud load?

 

 

 

mql5porter
43
mql5porter 2012.02.15 07:07  
CeleronS:

As soon i saw "2012.02.13 09:07:19 Terminal GPU: NVIDIA Corporation GeForce 8800 GTS with OpenCL 1.0 (12 units, 1188 MHz, 320 Mb, version 285.62", I was like OMG! OMG!  OMG! OMG! . Straight went to forums. :D

 

 This is coolest thing ever, this would totaly make all the tesing much faster, gpus still progressing in within the Mooore law.

 

Anyways, Im really sight, but still don't know that it will help much, couse  sometimes i put my quad for free to tester cloud, and it's usualy idle. Seems like people ain't testing that much anymore. Any statistics of cloud load?

 

 

 

Have you actually been able to run the sample script and seen the Mandelbrot set?

The script does not start and only returns an error since it cannot open the context despite the Terminal reports the GPU:

PI 0 opencltest (EURUSD,H1) 06:40:09 OpenCL not found

2012.02.15 06:30:51 Terminal GPU: NVIDIA Corporation GeForce GTX 560M with OpenCL 1.1 (4 units, 1550 MHz, 3072 Mb, version 286.16)

Janis Smits
732
Janis Smits 2012.02.23 09:20  

Yes, I was able to run it, but after i stop't it that blue thingy dosent go away, I had to close currency pair window make it go away.

Anyways, my gpu tmeperature was rising that means it did something.

onewithzachy
2271
onewithzachy 2012.05.20 10:33  

I can't run this script :(. Compiled but keep getting "OpenCL test not found" in MT5 b 642

Vista Home Basic SP2  Pentium Dual Core CPU T4200 @ 2 GHz, Mobile Intel® 4 Series Express Chipset Family GPU.

:( 

onewithzachy
2271
onewithzachy 2012.05.21 07:13  
onewithzachy:

I can't run this script :(. Compiled but keep getting "OpenCL test not found" in MT5 b 642

Vista Home Basic SP2  Pentium Dual Core CPU T4200 @ 2 GHz, Mobile Intel® 4 Series Express Chipset Family GPU.

:( 

Uh well, I reply myself. Mine is not supported :(

 http://en.wikipedia.org/wiki/OpenCL

http://www.khronos.org/conformance/adopters/conformant-products/ 

 

Alain Verleyen
Moderator
31134
Alain Verleyen 2013.05.31 21:13  

As some other people above, I had an error when running the script :

2013.05.31 20:58:09    OpenCLTest (AUDUSD,D1)    OpenCL not found

I solved the problem by making the following change :

   if((cl_ctx=CLContextCreate())==INVALID_HANDLE)

to

   if((cl_ctx=CLContextCreate(CL_USE_ANY))==INVALID_HANDLE)

Results:

2013.05.31 21:06:51    OpenCLTest (AUDUSD,D1)    OpenCL: CPU device ' Intel(R) Core(TM) i7-2677M CPU @ 1.80GHz' selected

MetaTrader Trading Platform Screenshots

AUDUSD, D1, 2013.05.31

MetaQuotes Software Corp., MetaTrader 5, Demo

Open CL Test

AUDUSD, D1, 2013.05.31, MetaQuotes Software Corp., MetaTrader 5, Demo


Peter Janetka
53
Peter Janetka 2013.09.30 20:44  

On Intel HD5000 it works flawlessly.


To add comments, please log in or register