SWDEV-490474 - Allow hipMallocManaged capturing only in relaxed mode
Change-Id: I02dccc6c45e39082ef925509a28bbe3c2a0fb7c6
Ta zmiana jest zawarta w:
%! (template.HTML=
Vladana Stojiljkovic)złożyło 2024-10-18 04:52:01 -04:00
1 rodzic
0f2342bc13
złożenie
6deecf1bfe
Plik 1 zmieniony
+1
@@ -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))) {
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika