# Difference between JuliaGPU and Distributed.jl

**URL:** https://discourse.julialang.org/t/difference-between-juliagpu-and-distributed-jl/107394
**Category:** New to Julia
**Created:** [December 11, 2023, 12:12am UTC](https://discourse.julialang.org/t/difference-between-juliagpu-and-distributed-jl/107394 "2023-12-11T00:12:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bdas123](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bdas123/32/32142_2.png) [@bdas123](https://discourse.julialang.org/u/bdas123)
#### Post date: [December 11, 2023, 12:12am UTC](https://discourse.julialang.org/t/difference-between-juliagpu-and-distributed-jl/107394/1 "2023-12-11T00:12:40Z")

</div>

Hello!  
This is more of a conceptual question.

It seems like Distributed.jl and JuliaGPU.jl both take advantage of parallel operations. I guess what’s the difference? Why use JuilaGPU when Distributed gets the same job done.

---

<div class="post-metadata">

### Author: ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)
#### Post date: [December 11, 2023, 1:00am UTC](https://discourse.julialang.org/t/difference-between-juliagpu-and-distributed-jl/107394/2 "2023-12-11T01:00:17Z")

</div>

Distributed.jl is for connecting multiple Julia processes together (presumably running on different servers, but they can be on the same server too if you want to just do multiprocessing). It provides some rudimentary tools for parallel computing, like `@distributed` and `pmap`, but generally you need to roll your own parallelism or use other packages which sit on top of Distributed.jl (such as Dagger.jl).

JuliaGPU is for running code on GPUs. The various JuliaGPU packages compile your code for GPUs, and because of their architecture, that code is then automatically parallelized on the GPU.

You can also use both together if you have multiple servers each with GPUs, but again, you’ll need to roll your own parallelism to combine them for your problem.

---

<div class="post-metadata">

### Author: ![bdas123](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bdas123/32/32142_2.png) [@bdas123](https://discourse.julialang.org/u/bdas123)
#### Post date: [December 11, 2023, 1:07am UTC](https://discourse.julialang.org/t/difference-between-juliagpu-and-distributed-jl/107394/3 "2023-12-11T01:07:01Z")

</div>

Oh interesting. Thanks for sharing!
