Skip to content

Commit

Permalink
disable UCX memory hooks (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored and simonbyrne committed Aug 3, 2019
1 parent 9d40e5a commit ba6ff68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ function __init__()
Libdl.dlopen(libmpi, Libdl.RTLD_LAZY | Libdl.RTLD_GLOBAL)
end

# disable UCX memory hooks since it can mess up dlopen
# https://github.com/openucx/ucx/issues/4001
ENV["UCX_MEM_MMAP_RELOC"] = "no"
ENV["UCX_MEM_MALLOC_HOOKS"] = "no"
ENV["UCX_MEM_MALLOC_RELOC"] = "no"
ENV["UCX_MEM_EVENTS"] = "no"

if filesize(dlpath(libmpi)) != libmpi_size
error("MPI library has changed, re-run Pkg.build(\"MPI\")")
end
Expand Down

0 comments on commit ba6ff68

Please sign in to comment.