Revert "SWDEV-491452 - Allow hipMemAdvise capturing only inrelaxed mode"
This reverts commit116effa83c. Reason for revert: It is considered a breaking change. Change-Id: Ia1f7b27a6d3caa4a9fe12bee469f5f0a6b8327fd [ROCm/clr commit:62e1d50c2a]
This commit is contained in:
@@ -136,7 +136,6 @@ hipError_t hipMemPrefetchAsync(const void* dev_ptr, size_t count, int device,
|
|||||||
// ================================================================================================
|
// ================================================================================================
|
||||||
hipError_t hipMemAdvise(const void* dev_ptr, size_t count, hipMemoryAdvise advice, int device) {
|
hipError_t hipMemAdvise(const void* dev_ptr, size_t count, hipMemoryAdvise advice, int device) {
|
||||||
HIP_INIT_API(hipMemAdvise, dev_ptr, count, advice, device);
|
HIP_INIT_API(hipMemAdvise, dev_ptr, count, advice, device);
|
||||||
CHECK_STREAM_CAPTURE_SUPPORTED();
|
|
||||||
|
|
||||||
bool isAdviseReadMostly = (advice == hipMemAdviseSetReadMostly) ||
|
bool isAdviseReadMostly = (advice == hipMemAdviseSetReadMostly) ||
|
||||||
(advice == hipMemAdviseUnsetReadMostly);
|
(advice == hipMemAdviseUnsetReadMostly);
|
||||||
|
|||||||
Reference in New Issue
Block a user