Open zrosol232 opened 9 months ago
Hi @zrosol232,
what does the console window (switch to it with Alt+Tab) say in the failed case?
I assume you have the A770 8GB model? Could it be an issue with getting too close to VRAM capacity limit? A laptop discrete GPU usually has the entire VRAM free for applications since the integrated GPU handles Windows overhead, but a dedicated desktop GPU usually has a few hundred MB VRAM occupied by Windows.
Can you test with
const uint3 lbm_N = resolution(float3(1.0f, 2.0f, 0.5f), 6000u);
to see if that still works, and then increase to maybe 7500?
Kind regards, Moritz
Hi @zrosol232,
what does the console window (switch to it with Alt+Tab) say in the failed case?
I assume you have the A770 8GB model? Could it be an issue with getting too close to VRAM capacity limit? A laptop discrete GPU usually has the entire VRAM free for applications since the integrated GPU handles Windows overhead, but a dedicated desktop GPU usually has a few hundred MB VRAM occupied by Windows.
Can you test with
const uint3 lbm_N = resolution(float3(1.0f, 2.0f, 0.5f), 6000u);
to see if that still works, and then increase to maybe 7500?
Kind regards, Moritz
I have the Arc A770 16 GB mode, and have attached the console output of what it does. The code attempts to load the stl file, then the program becomes unresponsive, along with the userspace, before the screen goes black and then comes back. The program does not render, but it will still accept commands from the keyboard.
I've attached a console output showing the process when the program hard locks, and it doesn't throw any error codes.
This issue persists regardless with 6000u or 4000u with the resolution function call.
Thanks again!
Hi @zrosol232,
this seems a problem with the .stl
voxelization kernel. Can you attach Full_Pack_21700_Rev2_SMALL.STL
so I can reproduce?
Thanks and kind regards, Moritz
Full_Pack_21700_Rev2_SMALL.zip
Here is the file. I've also attached the section of code of how I load the file and orient it.
float3x3 rotation = float3x3( float3(0, 0, 1), radians(90.0f)) * float3x3(float3(1, 0, 0), radians(270.0f)); // rotation around the z-axis by 180°, then around the x-axis by 90° const std::string stlPath = get_exe_path() + "../stl/Full_Pack_21700_Rev2_SMALL.STL"; Mesh* mesh = read_stl(stlPath, lbm.size(), lbm.center(), rotation, lbm_length); mesh->translate(float3(0.0f, 1.0f - mesh->pmin.y + 0.1f * lbm_length, 2.0f - mesh->pmin.z)); // move mesh forward a bit and to simulation box bottom, keep in mind 1 cell thick box boundaries //mesh->translate(float3(0.0f, 1.0f - mesh->pmin.y + 0.1f * lbm_length, 1.0f - mesh->pmin.z)); lbm.voxelize_mesh_on_device(mesh);
Hi @zrosol232, this is strange, it works for me with 7GB VRAM occupation.
EDIT: I tried again with the newer 4953 drivers, and it also works.
I wonder if the issue is a hardware problem with my Arc GPU. I do get Windows Kernel Error codes when I attempt to run this simulation (specifically a Windows Live Kernel Event with the error codes 141 and 117), so based on your ability to run the simulation, I'm afraid it's something on my end.
@zrosol232 driver issues are much more likely. Arc is very picky when any components from old drivers are still present. Try removing all graphics drivers with Display Driver Uninstaller, Intel drivers and also Nvidia/AMD drivers if you had used such a card before, and do a fresh reinstall of Arc drivers.
Hi @zrosol232,
I've fixed a bug in the voxelization kernel recently (PR #101), which was an out-of-bounds register access that could potentially cause crashes or freezing. Although Nvidia and Arc GPU drivers in my testing had no issues with the bug in place, it made the the OpenCL CPU runtime fail and could possibly have been the root cause of your issue too.
Could you please check if your issue is still present with current master branch code?
Thanks and kind regards, Moritz
Good morning, I am trying to run FluidX3D on an Arc A770 GPU for some collegiate racing aerodynamics and heat transfer sims. However, when I attempt to run the program with a custom setup script, I do not get anything on the rendering window output. The same setup script and settings work without issue on my Nvidia laptop.
Arc GPU: A770 Driver Version: 31.0.101.4953 (WHQL Certified) OS: Windows 11
Nvidia GPU: 3070 Ti Max-Q Driver Version: 537.58 Setup Script:
Defines:
I am also using a custom STL file and can provide it if you need it. Thank you in advance for your help.