-
Notifications
You must be signed in to change notification settings - Fork 0
OpenCL
To use OpenCL, first install it.
This differs if you use AMD, or NVIDIA, so just google (AMD | NVIDIA) how to install opencl
If you are using integrated graphics, this will not give a speedup, and might crash your computer. It is not advised.
You still need to download an SDK from your GPU vendor.
Then, go to Releases on the github page, look for the most recent, and it should look something like:
linux-opencl-$version.zip
Make sure to download the zip with opencl in the name.
Note that this has not been tested, and may fail. In this case, please see below:
You will need a compile command. Here is mine:
#!/bin/bash
gcc -L/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/ -I/opt/AMDAPPSDK-3.0/include CLPGS.c -o CLPGS.o -lOpenCL
You should replace the first path with your SDK, which will differ per install. Your include will as well.
Note that on some installations, using:
#!/bin/bash
gcc -L/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/ CLPGS.c -o CLPGS.o -lOpenCL
Or even
#!/bin/bash
gcc CLPGS.c -o CLPGS.o -lOpenCL
Will work if your libraries are correctly linked (Which I have had problems with on Linux).
Once you do this, you should have CLPGS.o
All you need to change is from my.prefs.
Change run_file from ./CPGS.o . . .
To ./CLPGS.o . . .