Comments (1)
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:
- open
path\to\FluidX3D
in Windows Explorer - click in the folder path text field, type
cmd
and press Enter; the Windows CMD will open in the FluidX3D folder - in the CMD console, type
bin\FluidX3D 2
and press Enter
On Linux
- in the FluidX3D folder, to compile and run on the CPU, type
.\make.sh 2
in the terminal - to only run, without compiling, type
bin/FluidX3D 2
in the terminal
You 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:
- the current version of the Intel CPU OpenCL Runtime on Windows (
w_opencl_runtime_p_2024.0.0.49848.exe
) is broken and needs a modification in registry keys - pressWin+R, type
regedit
, press Enter; the Registry Editor will open - in the path text field, enter
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
- richt click,
New
-->DWORD-Value (32-bit)
- name it
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin\intelocl64.dll
- leave its value at 0 (Hexadecimal)
- richt click,
- in the path text field, enter
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
- richt click,
New
-->DWORD-Value (32-bit)
- name it
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin\intelocl64.dll
- leave its value at 0 (Hexadecimal)
- richt click,
- in the path text field, enter
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Khronos\OpenCL\Vendors
- richt click,
New
-->DWORD-Value (32-bit)
- name it
C:\Program Files (x86)\Common Files\Intel\Shared Libraries\bin32\intelocl32.dll
- leave its value at 0 (Hexadecimal)
- richt click,
- close Registry Editor
- reboot
- the CPU should now show up as OpenCL device
Kind regards,
Moritz
from fluidx3d.
Related Issues (20)
- Propeller rotation axis off-axis during voxelization HOT 1
- Coupling with other solvers possible with precice? Or senseless?
- How do I define the axis of rotation for a geometry that is rotated 15 degrees about the y-axis?
- Definition of the rotational axis of a tilt propeller
- Extracted lift coefficients are negative HOT 2
- What the color rendering represents HOT 3
- Local values HOT 1
- How can I export a mesh HOT 1
- How to extract force data for multiple propellers separately HOT 1
- paraview extracts lift, drag, and pressure clouds. HOT 1
- Code fails in interactive mode sending "xcb_xlib_threads_sequence_lost". HOT 1
- Status file and Images not generated on a Linux Server HOT 5
- FR: Cubed Sphere Lattice HOT 4
- Calculation of liquid that does not fit in memory HOT 1
- neural network liquids HOT 1
- LBM has no member "graphics" HOT 1
- C2084 function 'int main(int,char* {})' already has a body............in file graphics. cpp HOT 4
- D3Q15 Dam Breaking Expanding Water HOT 3
- (Not an issue) - Porting to Perl and Python; first steps... making code a bit more standalone and general-purpose... HOT 1
- Wierdly behaving 3D objects / Meshes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluidx3d.