SWDEV-504376 - Update definition for hipHostAllocWriteCombined (#887)

This commit is contained in:
Julia Jiang
2025-09-10 12:22:24 -04:00
committato da GitHub
parent 4981fa2139
commit ae9a7f34c0
@@ -830,14 +830,17 @@ enum hipLimit_t {
/** Allocates the memory as write-combined. On some system configurations, write-combined allocation
* may be transferred faster across the PCI Express bus, however, could have low read efficiency by
* most CPUs. It's a good option for data transfer from host to device via mapped pinned memory.*/
* most CPUs. It's a good option for data transfer from host to device via mapped pinned memory.
* @note This flag is only for CUDA source compatibility but not functional within HIP runtime,
* because the allocation path is currently not supported on the AMD platform.*/
#define hipHostAllocWriteCombined 0x4
/** Allocates the memory as write-combined. On some system configurations, write-combined allocation
* may be transferred faster across the PCI Express bus, however, could have low read efficiency by
* most CPUs. It's a good option for data transfer from host to device via mapped pinned memory.
* @note This flag is the same definition as #hipHostAllocWriteCombined which is equivalent to
* cudaHostAllocWriteCombined.*/
* cudaHostAllocWriteCombined. It is only for CUDA source compatibility but not functional within
* HIP runtime, because the allocation path is currently not supported on the AMD platform.*/
#define hipHostMallocWriteCombined 0x4
/**