# GPU example for HE

**URL:** <https://openfhe.discourse.group/t/gpu-example-for-he/1249>\
**Category:** Library Questions\
**Tags:** openfhe-help\
**Created:** [May 5, 2024, 5:25am UTC](https://openfhe.discourse.group/t/gpu-example-for-he/1249 "2024-05-05T05:25:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kitt\_Degg](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@Kitt\_Degg](https://openfhe.discourse.group/u/Kitt_Degg)\
**Post date:** [May 5, 2024, 5:25am UTC](https://openfhe.discourse.group/t/gpu-example-for-he/1249/1 "2024-05-05T05:25:03Z")

</div>

Hello, I wanted to port a Dynamic Programming algorithm to GPU. I found that OpenFHE does have GPU support. Can you point me to an example code/tell me of method that moves Ciphertexts to and from host and device memory and computes on the Ciphertexts in parallel in GPU?

I can use this to simultaneously compute certain cells of DP matrix that can be computed in parallel, by different threads.

Thank you.

---

<div class="post-metadata">

**Author:** ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)\
**Post date:** [May 6, 2024, 1:37am UTC](https://openfhe.discourse.group/t/gpu-example-for-he/1249/2 "2024-05-06T01:37:11Z")

</div>

Currently, OpenFHE does not have a GPU backend. However, we are actively working on developing this feature, and we will make an announcement once it becomes available in a future release.
