FluidX3D icon indicating copy to clipboard operation
FluidX3D copied to clipboard

STL problem in Linux

Open jasonxauat opened this issue 8 months ago • 0 comments

Dear Author,

I have encountered an issue while running the FluidX3D simulation software on Ubuntu with an AMD MI50 GPU. The software works perfectly fine on Windows, but on Ubuntu, I run into a problem when loading an STL file using the voxelize_stl function (eg. case of Boeing 747). Specifically, the program crashes with a segmentation fault and reports "Memory access fault by GPU node-1" during or after attempting to load the STL file.

Here are some key points:

  • The system environment is Ubuntu 22.04 with an AMD MI50 GPU.
  • The same code runs without issues on Windows.
  • When I comment out the line calling voxelize_stl, the program runs normally.
  • I've verified that the STL file is valid and works correctly on Windows.
  • The error occurs despite having sufficient VRAM (32752 MB) and ensuring correct file paths for Linux.

I have tried updating the ROCm drivers and OpenCL implementation, as well as monitoring the GPU memory usage, but the issue persists. Could you please provide any insights or suggestions on what might be causing this discrepancy between Windows and Ubuntu? Any help would be greatly appreciated.

Info:

                                    \ /                FluidX3D Version 3.2 |
|                                      '     Copyright (c) Dr. Moritz Lehmann |
|-----------------------------------------------------------------------------|
|----------------.------------------------------------------------------------|
| Device ID    0 | AMD Radeon Graphics                                        |
|----------------'------------------------------------------------------------|
|----------------.------------------------------------------------------------|
| Device ID      | 0                                                          |
| Device Name    | AMD Radeon Graphics                                        |
| Device Vendor  | Advanced Micro Devices, Inc.                               |
| Device Driver  | 3649.0 (HSA1.1,LC) (Linux)                                 |
| OpenCL Version | OpenCL C 2.0                                               |
| Compute Units  | 60 at 1725 MHz (3840 cores, 13.248 TFLOPs/s)               |
| Memory, Cache  | 32752 MB VRAM, 16 KB global / 64 KB local                  |
| Buffer Limits  | 32752 MB global, 33538048 KB constant                      |
|----------------'------------------------------------------------------------|
| Info: OpenCL C code successfully compiled.                                  |
| Info: Allocating memory. This may take a few seconds.                       |
| Info: Loading                                                               |
|       "/home/ws0-gpu/code/FluidX3D-3.2-Leaking/stl/techtris_airplane.stl"   |
|       with 216256 triangles.                                                |
Memory access fault by GPU node-1 (Agent handle: 0x7a471807bf90) on address 0x7a470f086000. Reason: Page not present or supervisor privilege.
./make.sh: 第 33 行: 44502 已中止               (核心已转储) bin/FluidX3D "$@"

Thank you very much for your time and assistance.

Best regards, Jason

jasonxauat avatar Apr 25 '25 02:04 jasonxauat