SWDEV-490474 - Allow hipMallocManaged capturing only in relaxed mode

Change-Id: I02dccc6c45e39082ef925509a28bbe3c2a0fb7c6
Este cometimento está contido em:
Vladana Stojiljkovic cometeu 2024-10-18 04:52:01 -04:00
1 ascendente 0f2342bc13
cometimento 6deecf1bfe
1 ficheiro modificado
+1
+1
Ver ficheiro
@@ -64,6 +64,7 @@ static_assert(static_cast<uint32_t>(hipMemRangeAttributeLastPrefetchLocation) ==
// ================================================================================================
hipError_t hipMallocManaged(void** dev_ptr, size_t size, unsigned int flags) {
HIP_INIT_API(hipMallocManaged, dev_ptr, size, flags);
CHECK_STREAM_CAPTURE_SUPPORTED();
if ((dev_ptr == nullptr) || (size == 0) ||
((flags != hipMemAttachGlobal) && (flags != hipMemAttachHost))) {