# Can anyone suggest some package to built using CUDA.jl?

**URL:** <https://discourse.julialang.org/t/can-anyone-suggest-some-package-to-built-using-cuda-jl/49569>\
**Category:** General Usage\
**Created:** [November 4, 2020, 8:59am UTC](https://discourse.julialang.org/t/can-anyone-suggest-some-package-to-built-using-cuda-jl/49569 "2020-11-04T08:59:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Post date:** [November 4, 2020, 8:59am UTC](https://discourse.julialang.org/t/can-anyone-suggest-some-package-to-built-using-cuda-jl/49569/1 "2020-11-04T08:59:41Z")

</div>

Hi,  
I am trying to learn CUDA with julia… Can any one suggest some packages that I can refer to learn CUDA with julia ?

Manu

---

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [November 4, 2020, 10:43am UTC](https://discourse.julialang.org/t/can-anyone-suggest-some-package-to-built-using-cuda-jl/49569/2 "2020-11-04T10:43:15Z")

</div>

As a really trivial example, this is built to run on CUDA, but it doesn’t depend on CUDA at all:

[https://github.com/cesaraustralia/GrowthMaps.jl](https://github.com/cesaraustralia/GrowthMaps.jl)

It does some work and is very careful to rewrap all the arrays as they are read from diskm, standardise the array types everywhere, and do everything with immutable objects. So passing in a `CuArray` means it runs on CUDA. Otherwise it just runs on CPU.

It’s an elegant solution if you can do it, but maybe only applies to pretty simple applications. GrowthMaps.jl is just nested broadcasts once the recursion inlines.

I’m sure others will have better applications that use more actual CUDA.

Lines like this are what makes it work - anywhere I use `arraytype`, or `copy!` on something that is already a `CuArray` is moving data to the GPU:  
[https://github.com/cesaraustralia/GrowthMaps.jl/blob/master/src/framework.jl#L51](https://github.com/cesaraustralia/GrowthMaps.jl/blob/master/src/framework.jl#L51)

---

<div class="post-metadata">

**Author:** ![Manu\_Francis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/manu_francis/32/10010_2.png) [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Post date:** [November 5, 2020, 12:02am UTC](https://discourse.julialang.org/t/can-anyone-suggest-some-package-to-built-using-cuda-jl/49569/3 "2020-11-05T00:02:36Z")

</div>

Thanks for your reply… I will follow your code to learn CUDA with Julia  
Thank You
