Replace calls to ihipInit with use of HIP_INIT_API macro

Change-Id: Iabf7df79f0238a8ddffea4607fe945df36642850
Este commit está contenido en:
Maneesh Gupta
2016-07-22 15:46:55 +05:30
padre 1bf661223e
commit 71d51170ef
Se han modificado 6 ficheros con 32 adiciones y 22 borrados
+2 -2
Ver fichero
@@ -36,7 +36,7 @@ THE SOFTWARE.
*/
hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void* ptr)
{
std::call_once(hip_initialized, ihipInit);
HIP_INIT_API(attributes, ptr);
hipError_t e = hipSuccess;
@@ -85,7 +85,7 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, void* ptr)
*/
hipError_t hipHostGetDevicePointer(void **devicePointer, void *hostPointer, unsigned flags)
{
std::call_once(hip_initialized, ihipInit);
HIP_INIT_API(devicePointer, hostPointer, flags);
hipError_t e = hipSuccess;