# GPU calculations in Processing

**URL:** <https://discourse.processing.org/t/gpu-calculations-in-processing/25307>\
**Category:** Libraries\
**Created:** [November 9, 2020, 8:14pm UTC](https://discourse.processing.org/t/gpu-calculations-in-processing/25307 "2020-11-09T20:14:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vadsavin](https://avatars.discourse-cdn.com/v4/letter/v/d6d6ee/32.png) [@vadsavin](https://discourse.processing.org/u/vadsavin)\
**Post date:** [November 9, 2020, 8:14pm UTC](https://discourse.processing.org/t/gpu-calculations-in-processing/25307/1 "2020-11-09T20:14:21Z")

</div>

I have some tasks, that may be optimized using my gpu: calculating average brightness of pixels in some region.  
Is there convenient way to use my geforce 150m for custom calculations?

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [November 10, 2020, 12:26am UTC](https://discourse.processing.org/t/gpu-calculations-in-processing/25307/2 "2020-11-10T00:26:12Z")

</div>

Hi,

When reading your post, I first thought about GLSL shaders but I don’t know if it is possible to compute things and get back data from them…

Also you can check this link (Oracle article about accessing the GPU with Java) :

- [https://blogs.oracle.com/javamagazine/programming-the-gpu-in-java](https://blogs.oracle.com/javamagazine/programming-the-gpu-in-java)
