mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-09 23:45:36 +00:00
Use stderr
This commit is contained in:
parent
addc638856
commit
6f51b49ef8
@ -478,7 +478,7 @@ inline void *acceleratorAllocShared(size_t bytes)
|
|||||||
auto err = hipMallocManaged((void **)&ptr,bytes);
|
auto err = hipMallocManaged((void **)&ptr,bytes);
|
||||||
if( err != hipSuccess ) {
|
if( err != hipSuccess ) {
|
||||||
ptr = (void *) NULL;
|
ptr = (void *) NULL;
|
||||||
printf(" hipMallocManaged failed for %ld %s \n",bytes,hipGetErrorString(err));
|
fprintf(stderr," hipMallocManaged failed for %ld %s \n",bytes,hipGetErrorString(err)); fflush(stderr);
|
||||||
}
|
}
|
||||||
return ptr;
|
return ptr;
|
||||||
};
|
};
|
||||||
@ -490,7 +490,7 @@ inline void *acceleratorAllocDevice(size_t bytes)
|
|||||||
auto err = hipMalloc((void **)&ptr,bytes);
|
auto err = hipMalloc((void **)&ptr,bytes);
|
||||||
if( err != hipSuccess ) {
|
if( err != hipSuccess ) {
|
||||||
ptr = (void *) NULL;
|
ptr = (void *) NULL;
|
||||||
printf(" hipMalloc failed for %ld %s \n",bytes,hipGetErrorString(err));
|
fprintf(stderr," hipMalloc failed for %ld %s \n",bytes,hipGetErrorString(err)); fflush(stderr);
|
||||||
}
|
}
|
||||||
return ptr;
|
return ptr;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user