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

Problem running simulation on CPU #258

Open
OsloG3 opened this issue Jan 9, 2025 · 1 comment
Open

Problem running simulation on CPU #258

OsloG3 opened this issue Jan 9, 2025 · 1 comment
Labels
compiler/driver/OS issue Issues with the C++ compiler, the OpenCL driver of the device vendor, or the operating system

Comments

@OsloG3
Copy link

OsloG3 commented Jan 9, 2025

Hello,
I'm trying to run the "aerodynamics of a cow" simulation on my CPU ( AMD EPYC 7713P ). I'm using Ubuntu 22.04.5 LTS. I've installed the OpenCL Pocl runtime as in option 2 from the documentation I get the following error:
Screenshot from 2025-01-09 03-40-13
I've tried installing the intel OpenCL runtime (as in option 1 in the documentation). The simulation now runs but the output has visual artifacts:
Screenshot from 2025-01-09 03-33-19
Screenshot from 2025-01-09 03-46-12
The code is the one for the cow simulation without any changes( just using a different stl file ). I get the same problems running other simulations.
I can run on the GPU all simulation run correctly, but I'm trying to run simulations that require more than the 4GB memory of my GPU, and if i understand correctly it is not possible to run higher resolution simulations on the GPU that use more memory than the GPU's VRAM.

@ProjectPhysX
Copy link
Owner

Hi @OsloG3,

this is a compiler bug in the Intel CPU Runtime for OpenCL. My colleagues are already working on the fix.

For now, as a workaround, change this line to:

)+R( __attribute__((always_inline)) void draw_triangle_interpolated(const float3 p0, const float3 p1, const float3 p2, const int c0, const int c1, const int c2, const float* camera_cache, global int* bitmap, global int* zbuffer) { // 3D -> 2D

Kind regards,
Moritz

@ProjectPhysX ProjectPhysX added the compiler/driver/OS issue Issues with the C++ compiler, the OpenCL driver of the device vendor, or the operating system label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/driver/OS issue Issues with the C++ compiler, the OpenCL driver of the device vendor, or the operating system
Projects
None yet
Development

No branches or pull requests

2 participants