# LIKWID profiler

**URL:** https://discourse.julialang.org/t/likwid-profiler/58543
**Category:** Julia at Scale
**Created:** [April 4, 2021, 3:44am UTC](https://discourse.julialang.org/t/likwid-profiler/58543 "2021-04-04T03:44:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [April 4, 2021, 3:45am UTC](https://discourse.julialang.org/t/likwid-profiler/58543/1 "2021-04-04T03:45:00Z")

</div>

Definitely worth reading if you are interested in finding detail on the CPU or GPU system you are working with.  
If this belongs in Off Topic I will happily move it.

> **[Understanding CPU Architecture And Performance Using LIKWID - Performance...](https://pramodkumbhar.com/2020/03/architectural-optimisations-using-likwid-profiler/)**
>
> March 2020: I was planning to write about CPU microarchitecture analysis for a long time. I started writing this post more than a year ago, just before the beginning of COVID-19. But with so many things happening around (and new parenting...

---

<div class="post-metadata">

### Author: ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)
#### Post date: [April 4, 2021, 8:15pm UTC](https://discourse.julialang.org/t/likwid-profiler/58543/2 "2021-04-04T20:15:29Z")

</div>

For those who are interested in using LIKWID with Julia.

Setting LIKWID markers:

> **[GitHub - JuliaPerf/LIKWID.jl: Julia wrapper for the performance monitoring and...](https://github.com/JuliaPerf/LIKWID.jl)**
>
> Julia wrapper for the performance monitoring and benchmarking suite LIKWID.

Using `likwid-pin` for Julia threads:

> [@Thread affinitization: pinning Julia threads to cores](https://discourse.julialang.org/t/thread-affinitization-pinning-julia-threads-to-cores/58069/5):
>
> Alright, I’ve done some testing and had some discussion on Slack/GitHub. Let me share my findings. 1) Query the core id of a thread. Let’s start with the second question of the OP first: Is there a way in Julia to figure out which core a thread is running on? Thanks @pbayer for the pointer to schedule\_getcpu(). We can call it in Julia like so: glibc\_coreid() = @ccall sched\_getcpu()::Cint and query the core id of a specific thread using [ThreadPools’](https://github.com/tro3/ThreadPools.jl) @tspawnat: using ThreadPools tglibc\_cor…
