Replace calls to ihipInit with use of HIP_INIT_API macro

Change-Id: Iabf7df79f0238a8ddffea4607fe945df36642850


[ROCm/clr commit: b485470819]
This commit is contained in:
Maneesh Gupta
2016-07-22 15:46:55 +05:30
parent 21ae09859d
commit 64d0ffb404
6 changed files with 32 additions and 22 deletions
+2 -2
View File
@@ -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;