Skip to content

Commit

Permalink
prov/cxi: Enable dmabuf for ROCR by default.
Browse files Browse the repository at this point in the history
NETCASSINI-6844

Signed-off-by: Chuck Fossen <[email protected]>
  • Loading branch information
Chuck Fossen authored and iziemba committed Oct 31, 2024
1 parent 15b4487 commit 19d5828
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prov/cxi/src/cxip_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,11 @@ static void cxip_env_init(void)
"Enables the NIC IOTLB (default %d).", cxip_env.iotlb);
fi_param_get_bool(&cxip_prov, "iotlb", &cxip_env.iotlb);

/* Use ROCR DMABUF by default - honors the env if already set */
ret = setenv("FI_HMEM_ROCR_USE_DMABUF", "1", 0);
if (ret)
CXIP_INFO("Could not enable FI_HMEM_ROCR_USE_DMABUF ret:%d %s\n",
ret, fi_strerror(errno));

/* Disable cuda DMABUF by default - honors the env if already set */
ret = setenv("FI_HMEM_CUDA_USE_DMABUF", "0", 0);
Expand Down

0 comments on commit 19d5828

Please sign in to comment.