Skip to content

Commit

Permalink
Set some envs on init
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed May 6, 2024
1 parent 7e00057 commit f4a2c0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Extrae.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@ include("API.jl")
export Event, typecode, valuecode, description
export version, init, isinit, finish, flush, instrumentation, emit, register, previous_hwc_set, next_hwc_set, set_tracing_tasks, setoption, network_counters, network_routes, user_function

function __init__()
FFI.Extrae_init()

get!(ENV, "EXTRAE_HOME", Extrae_jll.artifact_dir)
get!(ENV, "EXTRAE_DISABLE_OMP", true)
get!(ENV, "EXTRAE_DISABLE_PTHREAD", false)
end

end

0 comments on commit f4a2c0c

Please sign in to comment.