Here's what you can do with OpenCL directly in MetaTrader 5 without any DLLs - page 14

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If you get an error when registering, check your email anyway.
When registering it says "Invalid format" when entering any kind of password
here's the link, it's 300mb, it takes a long time to drag and drop. it might work without cookies.
http://registrationcenter-download.intel.com/akdlm/irc_nas/vcp/11058/intel_sdk_for_opencl_setup_6.3.0.1904.exe
But the error remains
OpenCL not found. Error code=5114
After installing Intel SDK for OpenCL Applications there is a new device
But the error remains
By the way, new error codes have been added - Runtime errors
ERR_MATH_OVERFLOW
4019
An overflow occurred while calculating a math function
ERR_GLOBALVARIABLE_NOT_MODIFIED
4503
No global variable modifications were made
ERR_GLOBALVARIABLE_CANNOTREAD
4504
Failed to open and read file with global variable values
ERR_GLOBALVARIABLE_CANNOTWRITE
4505
Failed to write file with global variable values
ERR_TRADE_CALC_FAILED
4758
Failed to compute profit or margin
ERR_STRING_ARRAY_ONLY
5063
Must be an array of type string
ERR_OPENCL_TOO_MANY_OBJECTS
5113
Maximal number of OpenCL objects exceeded
ERR_OPENCL_SELECTDEVICE
5114
OpenCL device selection error
By the way, new error codes have been added - Execution time errors
The bug is still not fixed -Intel's processor-integrated graphics IGPs are not selected in context as the only GPU device with a filter by device type:
Funnily enough, at the same point, Print gives a different error code:
Seascape (GBPUSD,H1) OpenCL not found. Error=5114
If you set the device explicitly:
or like this
then everything works - the graphics coprocessor works up a sweat, including admitting that it is a graphics coprocessor:
Maybe the key letter in this case according to OpenCL 1.2 specification is device(s)? I.e. the MQL5 wrapper will probably return an array of GPU devices filtered byCL_DEVICE_TYPE_GPU typerather than a single device?
We should fix to a close to the specification implementation - select all devices of the given type in the context and introduce one more function similar toclGetContextInfo(,CL_CONTEXT_NUM_DEVICES,). After all, people may have a farm of several GPUs doing different kinds of tasks.
UPD: I have one more suggestion - maybe the problem is that no rating is defined for an IGP and MQL5 cannot pick the GPU device with the highest rating?
By the way, what is the criterion used to determine this coolness (rating)? GPU frequency * number of units?
The bug is still not fixed -Intel processor-integrated graphics IGPs are not selected in context as the only GPU device with a filter by device type:
Thanks, will figure it out now.
Checked on laptop by disabling Nvidia:
After disabling, it automatically finds the embedded GPU and works:
Note that your version of the Intel drivers is 10.18.14.511 and mine is 26.20.100.7985
I recommend that you update all drivers, put all updates on the operating system and try again.The bug is still not fixed -Intel processor-integrated graphics IGPs are not selected in context as a single GPU device with a device type filter:
Please do the following:
After that, check terminal log for OpenCL errors
For example:
OpenCL device N performance test error: 'error text'
or
OpenCL device N performance test failed
You should check for updates of your Intel video driver
Please note that your version of the Intel drivers is 10.18.14.511 and mine is 26.20.100.7985
I recommend to update all drivers, put all operating system updates and try again.Thanks for the prompt support, Renat!
Of course, OpenCL subject is very tasty and it motivates me to go to MQL5, especially as there is already a lot of good material on this topic in the MQL5.com Articles.
The usual cleanliness on the subject of updates before the Compline has been observed, of course. Today I spent the whole night trying to figure out the drivers and SDK.
The Intel website for this stone (IGP) installed the latest (from 25.11.2019 at Q3'13 release, your CPU generation drivers), i.e. both CPU and GPU are supported. CPU only runtime removed before, registry in Khronos branches cleaned.
The original Intel SDK for OpenCL Applications 2016 R2 which last supported Windows 8.1 and GPUs of this Intel 4th Generation Core CPUs is no longer available on the Intel website. If you know where I can download it virus free, I would appreciate it.
But runtime should also work normally, which it does. The GPU is visible both through MQL5 info commands (see above) when selecting it explicitly in CLContextCreate and through EA SeaScape speed. Also no errors are displayed in logs.
I will try to open your registry branch later in the evening after work and use a special startup to play with it, but absence of MQL5 rating assigned to my GPU is the reason for its elimination according to the CL_USE_GPU_ONLY filter beauty contest algorithm.
Thank you for your prompt support, Renat!
Of course, OpenCL topic is very tasty and it motivates me to go to MQL5, especially as there is already a lot of good material on this topic in MQL5.com Articles.
The usual cleanliness on the subject of updates before the Compline has been observed, of course. Today I spent the whole night trying to figure out the drivers and SDK.
The Intel website for this stone (IGP) installed the latest (from 25.11.2019 at Q3'13 release, your CPU generation drivers), i.e. both CPU and GPU are supported. CPU only runtime removed before, registry in Khronos branches cleaned.
The original Intel SDK for OpenCL Applications 2016 R2 which last supported Windows 8.1 and GPUs of this Intel 4th Generation Core CPUs is no longer available on the Intel website. If you know where I can download it virus free, I would appreciate it.
But runtime should also work normally, which it does. The GPU is visible both through MQL5 info commands (see above) when selecting it explicitly in CLContextCreate and through the speed of EA SeaScape.
I'll try to open your registry branch later in the evening after work and use a special startup to play, but imho the absence of my GPU rating assigned by MQL5 is the reason for its elimination according to the beauty contest algorithm through the CL_USE_GPU_ONLY filter.