# 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:** 1\
**Showing post:** 2

<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…

---

_[View the full topic](https://discourse.julialang.org/t/likwid-profiler/58543)._
