haxpor / opencl-simple

Testing ground of OpenCL 1.2 with its C++ API accompanying article on MQL5.com

Home Page:https://www.mql5.com/en/articles/12108

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opencl-simple

Testing ground of OpenCL 1.2 with its C++ API

It contains two categories of testing

  1. standalonetest
  2. simple

standalonetest is a simple cross-compiled executable to test using GPU with OpenCL in order to execute a kernel function.

simple is a DLL + main program as a cross-compiled to test on Linux/Windows, and MT5 platform.

Pre-requisite

Install the following debian-based package

  • mingw-w64
  • winehq-devel (or winehq-stable or winehq-staging, but recommend to use -devel package with MT5)
  • MetaTrader 5

How to build

See README.md of each sub-project.

Note

Those .dll files in each directory is a sym-link file to installed .dll via Mingw64, and Wine on users' Linux system. See following detail.

  • libgcc_s_seh-1.dll - as part of Mingw64
  • libstdc++-6.dll - as part of Mingw64
  • libwinpthread-1.dll - as part of Mingw64

Those symlink files points to the wine prefix as of ~/.mt5 which is the default installation path of MetaTrader 5. In case you install into different path, you have to update its location via the following command line.

ln -sf <new-path> ./libgcc_s_seh-1.dll

to update path that symlink file libgcc_s_seh-1.dll would be pointing to to <new-path>.


This repository accompanies the article series on mql5.com. The first part of the series can be found here.

License

GNU GPL-3.0, Wasin Thonkaew

About

Testing ground of OpenCL 1.2 with its C++ API accompanying article on MQL5.com

https://www.mql5.com/en/articles/12108

License:GNU General Public License v3.0


Languages

Language:C++ 68.6%Language:MQL5 10.4%Language:C 9.0%Language:Makefile 8.5%Language:MQL4 3.5%