-
Notifications
You must be signed in to change notification settings - Fork 0
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
CUDA: enable cuda support v1 - EAGER with GDR COPY #20
base: master
Are you sure you want to change the base?
Changes from 1 commit
a1b6607
87d29ef
ff3bcd0
4ed2a7d
87ecdd7
9cbca08
4c1417b
369d416
2915cdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -377,11 +377,24 @@ enum { | |
UCT_MD_FLAG_RKEY_PTR = UCS_BIT(6), /**< MD supports direct access to | ||
remote memory via a pointer that | ||
is returned by @ref uct_rkey_ptr */ | ||
UCT_MD_FLAG_SOCKADDR = UCS_BIT(7) /**< MD support for client-server | ||
UCT_MD_FLAG_SOCKADDR = UCS_BIT(7), /**< MD support for client-server | ||
connection establishment via | ||
sockaddr */ | ||
UCT_MD_FLAG_ADDR_DN = UCS_BIT(8) /**< MD supports memory addr domain | ||
detection */ | ||
}; | ||
|
||
/* | ||
* @ingroup UCT_MD | ||
* @brief Memory addr domains | ||
*/ | ||
typedef enum { | ||
UCT_MD_ADDR_DOMAIN_CUDA = 0, /**< NVIDIA CUDA domain */ | ||
UCT_MD_ADDR_DOMAIN_DEFAULT, /**< Default system domain */ | ||
UCT_MD_ADDR_DOMAIN_LAST = UCT_MD_ADDR_DOMAIN_DEFAULT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check LAST |
||
|
||
} uct_addr_domain_t; | ||
|
||
|
||
/** | ||
* @ingroup UCT_MD | ||
|
@@ -630,6 +643,7 @@ struct uct_md_attr { | |
size_t max_alloc; /**< Maximal allocation size */ | ||
size_t max_reg; /**< Maximal registration size */ | ||
uint64_t flags; /**< UCT_MD_FLAG_xx */ | ||
uct_addr_domain_t addr_dn; /**< Supported addr domain */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to uct_memory_domain_t There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or memory_type , memory_kind |
||
} cap; | ||
|
||
uct_linear_growth_t reg_cost; /**< Memory registration cost estimation | ||
|
@@ -1413,6 +1427,18 @@ ucs_status_t uct_md_mem_reg(uct_md_h md, void *address, size_t length, | |
ucs_status_t uct_md_mem_dereg(uct_md_h md, uct_mem_h memh); | ||
|
||
|
||
/** | ||
* @ingroup UCT_MD | ||
* @brief Detect memory on the memory domain. | ||
* | ||
* Detect memory on the memory domain. | ||
* Return UCS_OK if address belongs to MDs address domain | ||
* | ||
* @param [in] md Memory domain to register memory on. | ||
* @param [in] address Memory address to detect. | ||
*/ | ||
ucs_status_t uct_md_mem_detect(uct_md_h md, void *addr); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add to ucx_info to show memory detect support |
||
|
||
/** | ||
* @ingroup UCT_MD | ||
* @brief Allocate memory for zero-copy communications and remote access. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to _MRM_DETECT