File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ Query the access mode used by LIKWID, i.e. either
76
76
"""
77
77
accessmode () = LIKWID. get_configuration (). daemonMode
78
78
79
+ function liblikwid_available ()
80
+ return Libdl. find_library (liblikwid) != " "
81
+ end
82
+
79
83
" Run a Cmd object, returning the stdout & stderr contents plus the exit code"
80
84
function _execute (cmd:: Cmd )
81
85
out = Pipe ()
@@ -261,3 +265,12 @@ LIKWID_MODE(mode) = ENV["LIKWID_MODE"] = mode;
261
265
LIKWID_EVENTS (eventstr:: AbstractString ) = ENV [" LIKWID_EVENTS" ] = eventstr;
262
266
LIKWID_THREADS (cpustr:: AbstractString ) = ENV [" LIKWID_THREADS" ] = cpustr;
263
267
LIKWID_MPI_CONNECT (x:: AbstractString ) = ENV [" LIKWID_MPI_CONNECT" ] = x;
268
+
269
+ """
270
+ Query the paranoia level of the performance events system
271
+ """
272
+ function perf_event_paranoid ()
273
+ open (perf_paranoid_path, " r" ) do io
274
+ parse (Int, readline (io))
275
+ end
276
+ end
You can’t perform that action at this time.
0 commit comments