Implement hipHostFree on HCC path

Ta zmiana jest zawarta w:
%! (template.HTML=Ben Sander)złożyło 2016-03-19 23:25:11 -05:00
1 rodzic 9941ba0bc6
złożenie deb38625ca
2 plików zmienionych
+17 -1

Żadne pliki nie pasują do Twojego wyszukiwania

+8 -1
Wyświetl plik
@@ -2607,7 +2607,7 @@ hipError_t hipFree(void* ptr)
}
hipError_t hipFreeHost(void* ptr)
hipError_t hipHostFree(void* ptr)
{
// TODO - ensure this pointer was created by hipMallocHost and not hipMalloc
std::call_once(hip_initialized, ihipInit);
@@ -2621,6 +2621,13 @@ hipError_t hipFreeHost(void* ptr)
};
// TODO - deprecated function.
hipError_t hipFreeHost(void* ptr)
{
hipHostFree(ptr);
}
/**
* @warning HCC returns 0 in *canAccessPeer ; Need to update this function when RT supports P2P