mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-11-18 01:48:16 +08:00
Add and update samples with CUDA 10.1 support
This commit is contained in:
@@ -282,6 +282,42 @@ static const char *_cudaGetErrorEnum(curandStatus_t error) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NVJPEGAPI
|
||||
// nvJPEG API errors
|
||||
static const char *_cudaGetErrorEnum(nvjpegStatus_t error) {
|
||||
switch (error) {
|
||||
case NVJPEG_STATUS_SUCCESS:
|
||||
return "NVJPEG_STATUS_SUCCESS";
|
||||
|
||||
case NVJPEG_STATUS_NOT_INITIALIZED:
|
||||
return "NVJPEG_STATUS_NOT_INITIALIZED";
|
||||
|
||||
case NVJPEG_STATUS_INVALID_PARAMETER:
|
||||
return "NVJPEG_STATUS_INVALID_PARAMETER";
|
||||
|
||||
case NVJPEG_STATUS_BAD_JPEG:
|
||||
return "NVJPEG_STATUS_BAD_JPEG";
|
||||
|
||||
case NVJPEG_STATUS_JPEG_NOT_SUPPORTED:
|
||||
return "NVJPEG_STATUS_JPEG_NOT_SUPPORTED";
|
||||
|
||||
case NVJPEG_STATUS_ALLOCATOR_FAILURE:
|
||||
return "NVJPEG_STATUS_ALLOCATOR_FAILURE";
|
||||
|
||||
case NVJPEG_STATUS_EXECUTION_FAILED:
|
||||
return "NVJPEG_STATUS_EXECUTION_FAILED";
|
||||
|
||||
case NVJPEG_STATUS_ARCH_MISMATCH:
|
||||
return "NVJPEG_STATUS_ARCH_MISMATCH";
|
||||
|
||||
case NVJPEG_STATUS_INTERNAL_ERROR:
|
||||
return "NVJPEG_STATUS_INTERNAL_ERROR";
|
||||
}
|
||||
|
||||
return "<unknown>";
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NV_NPPIDEFS_H
|
||||
// NPP API errors
|
||||
static const char *_cudaGetErrorEnum(NppStatus error) {
|
||||
|
||||
Reference in New Issue
Block a user