SWDEV-294588 - Enable NV printf DTests

Add hipLimitPrintfFifoSize.
Add hipDeviceSetLimit(hipLimit_t limit, size_t value) for NV.

Change-Id: Ife884e0c3081b317bdadc8bec7814d1d7c60153a
Tento commit je obsažen v:
Tao Sang
2021-07-12 22:55:40 -04:00
odevzdal Tao Sang
rodič 8b809eb24e
revize b0bd8d6859
+5
Zobrazit soubor
@@ -281,6 +281,7 @@ typedef enum cudaMemRangeAttribute hipMemRangeAttribute;
#define HIP_LAUNCH_PARAM_BUFFER_POINTER CU_LAUNCH_PARAM_BUFFER_POINTER
#define HIP_LAUNCH_PARAM_BUFFER_SIZE CU_LAUNCH_PARAM_BUFFER_SIZE
#define HIP_LAUNCH_PARAM_END CU_LAUNCH_PARAM_END
#define hipLimitPrintfFifoSize cudaLimitPrintfFifoSize
#define hipLimitMallocHeapSize cudaLimitMallocHeapSize
#define hipIpcMemLazyEnablePeerAccess cudaIpcMemLazyEnablePeerAccess
@@ -1969,6 +1970,10 @@ inline static hipError_t hipDeviceGetLimit(size_t* pValue, hipLimit_t limit) {
return hipCUDAErrorTohipError(cudaDeviceGetLimit(pValue, limit));
}
inline static hipError_t hipDeviceSetLimit(hipLimit_t limit, size_t value) {
return hipCUDAErrorTohipError(cudaDeviceSetLimit(limit, value));
}
inline static hipError_t hipDeviceTotalMem(size_t* bytes, hipDevice_t device) {
return hipCUResultTohipError(cuDeviceTotalMem(bytes, device));
}