Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voxelization failed to run on CPU #101

Closed
xx005fs opened this issue Aug 7, 2023 · 5 comments
Closed

Voxelization failed to run on CPU #101

xx005fs opened this issue Aug 7, 2023 · 5 comments
Labels
bug something isn't working

Comments

@xx005fs
Copy link

xx005fs commented Aug 7, 2023

I'm currently on Windows 10 using Visual Studio 2019 trying to run some of the default setups with my Ryzen 9 7950X3D CPU, and it seems to work fine with the benchmark runs and simulation runs without loading in an STL file, but once I tried running one that needs to load in an STL file, it throws this error in Visual Studio. Any clues on how to fix it?

Exception thrown at 0x000002B4E5944539 in FluidX3D.exe: 0xC0000005: Access violation reading location 0x000002B4F875A0C0.

@ProjectPhysX
Copy link
Owner

Hi @xx005fs,

apologies for the bug. Access violation means it's trying to read memory from an array index that is out-of-bounds.

  • Is the stl file in the correct directory FluidX3D/stl/fiel.stl?
  • Does it work when you choose a different device, like the GPU instead of CPU?
  • If you comment out the line //lbm.voxelize_stl(...);, does the bug still appear?
  • Is it one of the sample setups, and if not, could you share the setup script and stl file (link)?

Kind regards,
Moritz

@xx005fs
Copy link
Author

xx005fs commented Aug 7, 2023

The stl file is in the correct directory and runs perfectly fine on my GPU. I wanted to run on my CPU due to the limited VRAM I have compared to my system ram. The bug seems to still be there even after commenting out the voxelize line, and I'm just using the aerodynamics of a cow sample setup with the STL downloaded from thingiverse.

@ProjectPhysX ProjectPhysX added the bug something isn't working label Aug 7, 2023
@ProjectPhysX
Copy link
Owner

Are you using Intel's OpenCL CPU runtime, and which version?
I can replicate: There seems to be a bug in the OpenCL CPU Runtime with the voxelize_mesh kernel. I'm trying to get to the bottom of it.

@ProjectPhysX ProjectPhysX added compiler/driver/OS issue Issues with the C++ compiler, the OpenCL driver of the device vendor, or the operating system and removed bug something isn't working labels Aug 8, 2023
@xx005fs xx005fs closed this as completed Aug 9, 2023
@xx005fs xx005fs reopened this Aug 9, 2023
@xx005fs
Copy link
Author

xx005fs commented Aug 9, 2023

Sorry I accidentally closed the issue. But in anycase, I'm using the newest intel oneAPI opencl on the github link provided.

@ProjectPhysX ProjectPhysX added bug something isn't working and removed compiler/driver/OS issue Issues with the C++ compiler, the OpenCL driver of the device vendor, or the operating system labels Apr 17, 2024
@ProjectPhysX
Copy link
Owner

Hi @xx005fs,

I found the root cause and have fixed this bug!
Thanks again for reporting and thanks for the patience!

Kind regards,
Moritz

@ProjectPhysX ProjectPhysX changed the title Simulation failed to run on CPU Voxelization failed to run on CPU Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants