# How to use CUDA for AvlancheMC

**URL:** <https://root-forum.cern.ch/t/how-to-use-cuda-for-avlanchemc/64052>\
**Category:** Garfield++\
**Created:** [August 20, 2025, 3:25am UTC](https://root-forum.cern.ch/t/how-to-use-cuda-for-avlanchemc/64052 "2025-08-20T03:25:07Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![gabrielribcesario](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gabrielribcesario/32/38927_2.png) [@gabrielribcesario](https://root-forum.cern.ch/u/gabrielribcesario)\
**Post date:** [August 31, 2025, 3:29pm UTC](https://root-forum.cern.ch/t/how-to-use-cuda-for-avlanchemc/64052/7 "2025-08-31T15:29:30Z")

</div>

Hello,

This seems to be the same error I’ve reported [here](https://root-forum.cern.ch/t/segmentation-violation-when-plotting-with-garfield/64072). Can you try reverting your Garfield installation back to [commit 101dfdae](https://gitlab.cern.ch/garfield/garfieldpp/-/commit/101dfdae5c7d71b8112750a3ea05f1d4310bdf7c) and see if it persists? I’d recommend deleting everything inside the build directory when doing so, or at least the CMake generated files (e.g. CMake cache, etc.).

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-use-cuda-for-avlanchemc/64052)._
