# Nsight compute from CUDA.jl and source annotation

**URL:** <https://discourse.julialang.org/t/nsight-compute-from-cuda-jl-and-source-annotation/57855>\
**Category:** Performance\
**Tags:** gpu\
**Created:** [March 24, 2021, 10:26am UTC](https://discourse.julialang.org/t/nsight-compute-from-cuda-jl-and-source-annotation/57855 "2021-03-24T10:26:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 24, 2021, 10:26am UTC](https://discourse.julialang.org/t/nsight-compute-from-cuda-jl-and-source-annotation/57855/1 "2021-03-24T10:26:44Z")

</div>

Hi,

I try to build a training session on GPU programming (including kernel programming) and I want to use Julia and CUDA.jl as a development environment. Profiling is an essential tool for GPGPU and I think that profiling tools and profile based development is a very important topic to be covered in a GPU lecture.

I have followed this (excellent) video by @maleadt

[![](https://global.discourse-cdn.com/julialang/original/3X/7/f/7fb984b279ae36b4baa1ea7cf1b4908524fda6c3.jpeg "GPU Programming in Julia") ](https://www.youtube.com/watch?v=9soe36Hqq3Y)

and I have two questions:

- Is their other (newest) video for GPU profiling for CUDA.jl ?
- Is it possible to get source related profile with CUDA.jl similar to what you can get via the `-lineinfo` nvcc’s option and nsight compute profiling software ?

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [March 24, 2021, 5:15pm UTC](https://discourse.julialang.org/t/nsight-compute-from-cuda-jl-and-source-annotation/57855/2 "2021-03-24T17:15:20Z")

</div>

> [@LaurentPlagne](#):
>
> Is their other (newest) video for GPU profiling for CUDA.jl ?

There’s an updated version from last January on [Webinars - JuliaHub](https://juliacomputing.com/resources/webinars/)

> [@LaurentPlagne](#):
>
> Is it possible to get source related profile with CUDA.jl similar to what you can get via the `-lineinfo` nvcc’s option and nsight compute profiling software ?

There was, but due to a bug in CUDA we currently can’t emit the necessary debug info (the CUDA driver crashes). This has been filed with NVIDIA, and I’m told this may be fixed in the next driver release.

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 24, 2021, 5:16pm UTC](https://discourse.julialang.org/t/nsight-compute-from-cuda-jl-and-source-annotation/57855/3 "2021-03-24T17:16:07Z")

</div>

Thank you Tim !

---

<div class="post-metadata">

**Author:** ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Post date:** [March 25, 2021, 7:28am UTC](https://discourse.julialang.org/t/nsight-compute-from-cuda-jl-and-source-annotation/57855/4 "2021-03-25T07:28:48Z")

</div>

This updated version is great.  
The `cuda-memcheck --tools racecheck julia /tmp/test.jl` (@ 32’28) is super useful !
