Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable UCX memory hooks #298

Merged
merged 1 commit into from
Aug 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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