Skip to content

Commit

Permalink
Clean init function
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Oct 22, 2023
1 parent 43445b7 commit f69ea02
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,7 @@ This routine is called automatically in different circumstances, which include:
No major problems should occur if the library is initialized twice, only a warning appears in the terminal output noticing the intent of double initialization.
"""
function init()
## TODO: This setup should depend on isntrumentation options.
## For example, if isntrumenting Distributed, here we setup the
## Distributed functions to identify resources
# FFI.Extrae_set_numtasks_function(dist_numtasks)
# FFI.Extrae_set_taskid_function(dist_taskid)

## Setup traceid for not intereference
ENV["EXTRAE_PROGRAM_NAME"] = "JULIATRACE$(Distributed.myid())"

FFI.Extrae_init()
end
init() = FFI.Extrae_init()


"""
Expand Down

0 comments on commit f69ea02

Please sign in to comment.