From 41339d7602bcf375e33146202ffbcf9cdc541d10 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sun, 8 Nov 2020 17:33:15 -0500 Subject: [PATCH] implement getProcessorId --- src/LIKWID.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LIKWID.jl b/src/LIKWID.jl index 9e9fcfd8..6b9e8a91 100644 --- a/src/LIKWID.jl +++ b/src/LIKWID.jl @@ -4,6 +4,10 @@ module LIKWID const liblikwid = "liblikwid" include("marker.jl") + function getProcessorId() + ccall((:likwid_getProcessorId, liblikwid), Cint, ()) + end + function __init__() Marker.init() Threads.@threads for i in 1:Threads.nthreads()