Skip to content
Benjamin Zaitlen edited this page Sep 18, 2019 · 4 revisions

Welcome to the ucx-py wiki!

Env Vars

DEBUG

UCX_PY_LOG_LEVEL=DEBUG # TRACE UCX_LOG_LEVEL=DEBUG # TRACE

UCX_MEMTYPE_CACHE

UCX Memory optimization known issues. UCX-PY regularly sets this to n -- toggles whether UCX library intercepts cualloc calls.

UCX_MEMTYPE_CACHE=n

UCX_RNDV_SCHEME

UCX_RNDV_SCHEME=put_zcopy

UCX_TLS (similified):

  • rc = ibv_post_send, ibv_post_recv, ibv_poll_cq
  • cuda_copy = cuMemHostRegister, cuMemcpyAsync
  • cuda_ipc = cuIpcCloseMemHandle , cuIpcOpenMemHandle, cuMemcpyAsync
  • sockcm = connection management over sockets
  • tcp = communication over TCP

Example Usage

IB -- Yes NVLINK

UCX_RNDV_SCHEME=put_zcopy UCX_MEMTYPE_CACHE=n UCX_TLS=rc,cuda_copy,cuda_ipc

TLS/Socket -- No NVLINK

UCX_MEMTYPE_CACHE=n UCX_TLS=tcp,cuda_copy,sockcm UCX_SOCKADDR_TLS_PRIORITY=sockcm <SCRIPT>

TLS/Socket -- Yes NVLINK

UCX_MEMTYPE_CACHE=n UCX_TLS=tcp,cuda_copy,cuda_ipc,sockcm UCX_SOCKADDR_TLS_PRIORITY=sockcm <SCRIPT>

Clone this wiki locally