Closed wjsjtu123 closed 4 months ago
Hi @wjsjtu123,
once the Intel OpenCL CPU Runtime is installed, when you start FluidX3D, the CPU should appear as OpenCL device, like so:
|----------------.------------------------------------------------------------|
| Device ID 0 | Intel(R) Arc(TM) A750 Graphics |
| Device ID 1 | Intel(R) UHD Graphics 630 |
+| Device ID 2 | Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz |
|----------------'------------------------------------------------------------|
By default, the (fastest) dedicated GPU will be selected, here device 0
. To select the CPU (here device 2
) manually:
On Windows:
path\to\FluidX3D
in Windows Explorercmd
and press Enter; the Windows CMD will open in the FluidX3D folderbin\FluidX3D 2
and press EnterOn Linux
.\make.sh 2
in the terminalbin/FluidX3D 2
in the terminalYou should then see that it's running on the CPU:
|----------------.------------------------------------------------------------|
+| Device ID | 2 |
+| Device Name | Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz |
+| Device Vendor | Intel(R) Corporation |
+| Device Driver | 2023.16.6.0.28_042959 (Windows) |
+| OpenCL Version | OpenCL C 3.0 |
+| Compute Units | 12 at 3700 MHz (6 cores, 0.710 TFLOPs/s) |
+| Memory, Cache | 16250 MB, 256 KB global / 32 KB local |
+| Buffer Limits | 8125 MB global, 128 KB constant |
|----------------'------------------------------------------------------------|
Troubleshooting in case the CPU does not appear as OpenCL device when starting FluidX3D:
w_opencl_runtime_p_2024.0.0.49848.exe
) is broken and needs a modification in registry keysregedit
, press Enter; the Registry Editor will openComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
New
-->DWORD-Value (32-bit)
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin\intelocl64.dll
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
New
-->DWORD-Value (32-bit)
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin\intelocl64.dll
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Khronos\OpenCL\Vendors
New
-->DWORD-Value (32-bit)
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin32\intelocl32.dll
Kind regards, Moritz
After installing the Intel OpenCL CPU Runtime, how do I use it so that I can do the computation on the CPU?