realm: let cuda module to update the bandwidth of XFER_MEM_CPY channel
Changes:
- provide a new API
Module::update_dma_channel
to allow modules update any channel after the creation of dma channels. In this PR, we use it to update the bandwidth of MEMCPY channel. - update the
suggests_path
to return the index of the path in thestd::vector<> paths
once a supported path is found. - add a new API
Channel::update_path
to update the metadata of the path. - update the bandwidth of MEMCPY channel into a reasonable number, which is 8GB/s.
TODO:
- update the hip module
- add a unit test
Edited by Wei Wu