Note: This code is based on some examples I found online.
To run, first build the program with make:
cd ./src/
make
That will create a file ising.out
which is the main executable and can be run standalone.
The main configuration is choosing which platform/device to use. You can query the available OpenCL platforms with the program clinfo
, then configure ising.h
definitions properly.