Skip to content

Fix gpu segfault for extend signed distance#577

Merged
marchdf merged 1 commit intodevelopmentfrom
fix-cuda-segfault
Oct 27, 2025
Merged

Fix gpu segfault for extend signed distance#577
marchdf merged 1 commit intodevelopmentfrom
fix-cuda-segfault

Conversation

@marchdf
Copy link
Copy Markdown
Contributor

@marchdf marchdf commented Oct 27, 2025

The issue is that we capture geomdata on host. And then we take a pointer to dx in geomdata and use that on device. That causes a

amrex::Abort::0::CUDA error 700 in file /mnt/vdb/home/mhenryde/combustion/Pele/PeleLMeX/Submodules/PelePhysics/Submodules/amrex/Src/Base/AMReX_GpuDevice.cpp line 689: an illegal memory ac
cess was encountered !!!
SIGABRT

The fix is to grab dx as a gpuarray and then everything is fine.

@marchdf marchdf enabled auto-merge (squash) October 27, 2025 15:47
@marchdf marchdf merged commit 95721df into development Oct 27, 2025
24 checks passed
@marchdf marchdf deleted the fix-cuda-segfault branch October 27, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants