fixed hipHostGetFlags test
This commit is contained in:
@@ -130,7 +130,7 @@ int HIP_DISABLE_HW_COPY_DEP = 1;
|
|||||||
|
|
||||||
// Compile code that generate
|
// Compile code that generate
|
||||||
#ifndef COMPILE_TRACE_MARKER
|
#ifndef COMPILE_TRACE_MARKER
|
||||||
#define COMPILE_TRACE_MARKER 1
|
#define COMPILE_TRACE_MARKER 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -2064,7 +2064,7 @@ hipError_t hipHostGetDevicePointer(void **devicePointer, void *hostPointer, unsi
|
|||||||
hipError_t e = hipSuccess;
|
hipError_t e = hipSuccess;
|
||||||
|
|
||||||
// Flags must be 0:
|
// Flags must be 0:
|
||||||
if (flags == 0) {
|
if (flags != 0) {
|
||||||
e = hipErrorInvalidValue;
|
e = hipErrorInvalidValue;
|
||||||
} else {
|
} else {
|
||||||
hc::accelerator acc;
|
hc::accelerator acc;
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ HIPCHECK(hipHostMalloc((void**)&C, SIZE, hipHostMallocMapped));
|
|||||||
HIPCHECK(hipHostMalloc((void**)&D, SIZE, hipHostMallocDefault));
|
HIPCHECK(hipHostMalloc((void**)&D, SIZE, hipHostMallocDefault));
|
||||||
|
|
||||||
unsigned int flagA, flagB, flagC;
|
unsigned int flagA, flagB, flagC;
|
||||||
|
|
||||||
HIPCHECK(hipHostGetDevicePointer((void**)&Ad, A, 0));
|
HIPCHECK(hipHostGetDevicePointer((void**)&Ad, A, 0));
|
||||||
HIPCHECK(hipHostGetDevicePointer((void**)&Bd, B, 0));
|
HIPCHECK(hipHostGetDevicePointer((void**)&Bd, B, 0));
|
||||||
HIPCHECK(hipHostGetDevicePointer((void**)&Cd, C, 0));
|
HIPCHECK(hipHostGetDevicePointer((void**)&Cd, C, 0));
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user