Skip to content

Commit 642cd90

Browse files
authored
SWDEV-553375 - Implement hipMemAllocationTypeUncached in hipMemCreate… (#376)
… (#747) ## Associated JIRA ticket number/Github issue number [SWDEV-553375](https://ontrack-internal.amd.com/browse/SWDEV-553375) ## What type of PR is this? (check all applicable) - [ ] Refactor - [x] Feature - [ ] Bug Fix - [ ] Optimization - [ ] Documentation Update - [ ] Continuous Integration ## What were the changes? Add hipDeviceMallocUncached to hipMemCreate and hipMemMap flags ## Why are these changes needed? Need to support uncache memory allocation using hipMemCreate or hipMemMap ## Updated CHANGELOG? <!-- Needed for Release updates for a ROCm release. --> - [ ] Yes - [ ] No, Does not apply to this PR. ## Added/Updated documentation? - [ ] Yes - [ ] No, Does not apply to this PR. ## Additional Checks - [ ] I have added tests relevant to the introduced functionality, and the unit tests are passing locally. - [ ] Any dependent changes have been merged.
2 parents 41af0f9 + 5366d3a commit 642cd90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/hip/hip_runtime_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,6 +1153,7 @@ typedef enum hipMemAllocationType {
11531153
* location while the application is actively using it
11541154
*/
11551155
hipMemAllocationTypePinned = 0x1,
1156+
hipMemAllocationTypeUncached = 0x40000000,
11561157
hipMemAllocationTypeMax = 0x7FFFFFFF
11571158
} hipMemAllocationType;
11581159
/**

0 commit comments

Comments
 (0)