# 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:** 4

<div class="post-metadata">

**Author:** ![Migu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Migu](https://root-forum.cern.ch/u/Migu)\
**Post date:** [August 20, 2025, 7:37am UTC](https://root-forum.cern.ch/t/how-to-use-cuda-for-avlanchemc/64052/4 "2025-08-20T07:37:59Z")

</div>

Hello，

Thanks for your reply.

I can run this program in my original environment using the latest version of Garfield++and ROOT 6.36, but I found that the program executes very slowly, and even if I wait for a few hours, I cannot calculate the first cluster. So I wanted to run this program in another old version of the Garfield++environment, and then I encountered the error mentioned earlier.

I am using WSL, and I checked the total CPU usage in Windows while I was running the program:

 ![1755588559617](https://root-forum.cern.ch/uploads/default/original/3X/c/5/c5ba20a39a6b5d62ad24c05e8a2277cd14e735a2.png)

It shows that the total CPU utilization is only 10%. I have allocated resources for my WSL, and my server has 64 logical processors. But I still have a slower running speed compared to others in this discussion.

[https://root-forum.cern.ch/t/signal-question/63443/14](https://root-forum.cern.ch/t/signal-question/63443/14)

The code and parameters I used are consistent with those discussed in the link.

Here is the code and corresponding files. Thank you in advance for your help.

[mre.zip](https://root-forum.cern.ch/uploads/short-url/iyN2hP2PBQ7sKkj5GHusFCwzWP2.zip) (12.8 KB)

---

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