Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-07-02 03:50:42 +0400
committerThomas Dinges <blender@dingto.org>2014-07-02 03:50:42 +0400
commit5898abe99d5db431d8d45d5c92567150e8d3a94b (patch)
tree64ac6b5f20eb230e46cacaf45e7dc57363a775f1 /intern
parent4800c52700b436d684823edf2b1af6aeec1ae1db (diff)
Cycles: Update CUDA error messages, based on Toolkit 6.0.
* Removed deprecated erros, and added some new ones, which might help to figure out problems in the future.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_cuda.cpp16
-rw-r--r--intern/cycles/util/util_cuda.h14
2 files changed, 26 insertions, 4 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 92d29e4e3c1..3bb16c7b14f 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -75,7 +75,6 @@ public:
case CUDA_ERROR_INVALID_IMAGE: return "Invalid kernel image";
case CUDA_ERROR_INVALID_CONTEXT: return "Invalid context";
- case CUDA_ERROR_CONTEXT_ALREADY_CURRENT: return "Context already current";
case CUDA_ERROR_MAP_FAILED: return "Map failed";
case CUDA_ERROR_UNMAP_FAILED: return "Unmap failed";
case CUDA_ERROR_ARRAY_IS_MAPPED: return "Array is mapped";
@@ -87,11 +86,15 @@ public:
case CUDA_ERROR_NOT_MAPPED_AS_POINTER: return "Mapped resource not available for access as a pointer";
case CUDA_ERROR_ECC_UNCORRECTABLE: return "Uncorrectable ECC error detected";
case CUDA_ERROR_UNSUPPORTED_LIMIT: return "CUlimit not supported by device";
+ case CUDA_ERROR_CONTEXT_ALREADY_IN_USE: return "Context already in use";
+ case CUDA_ERROR_PEER_ACCESS_UNSUPPORTED: return "Peer access unsupported";
+ case CUDA_ERROR_INVALID_PTX: return "Invalid PTX code";
case CUDA_ERROR_INVALID_SOURCE: return "Invalid source";
case CUDA_ERROR_FILE_NOT_FOUND: return "File not found";
case CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND: return "Link to a shared object failed to resolve";
case CUDA_ERROR_SHARED_OBJECT_INIT_FAILED: return "Shared object initialization failed";
+ case CUDA_ERROR_OPERATING_SYSTEM: return "OS call failed";
case CUDA_ERROR_INVALID_HANDLE: return "Invalid handle";
@@ -99,10 +102,19 @@ public:
case CUDA_ERROR_NOT_READY: return "CUDA not ready";
- case CUDA_ERROR_LAUNCH_FAILED: return "Launch failed";
+ case CUDA_ERROR_ILLEGAL_ADDRESS: return "Illegal adress";
case CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES: return "Launch exceeded resources";
case CUDA_ERROR_LAUNCH_TIMEOUT: return "Launch exceeded timeout";
case CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING: return "Launch with incompatible texturing";
+ case CUDA_ERROR_HARDWARE_STACK_ERROR: return "Stack error";
+ case CUDA_ERROR_ILLEGAL_INSTRUCTION: return "Illegal instruction";
+ case CUDA_ERROR_MISALIGNED_ADDRESS: return "Misaligned adress";
+ case CUDA_ERROR_INVALID_ADDRESS_SPACE: return "Invalid adress space";
+ case CUDA_ERROR_INVALID_PC: return "Invalid program counter";
+ case CUDA_ERROR_LAUNCH_FAILED: return "Launch failed";
+
+ case CUDA_ERROR_NOT_PERMITTED: return "Operation not permitted";
+ case CUDA_ERROR_NOT_SUPPORTED: return "Operation not supported";
case CUDA_ERROR_UNKNOWN: return "Unknown error";
diff --git a/intern/cycles/util/util_cuda.h b/intern/cycles/util/util_cuda.h
index 0c80303df9b..b5e9c7188cd 100644
--- a/intern/cycles/util/util_cuda.h
+++ b/intern/cycles/util/util_cuda.h
@@ -252,7 +252,6 @@ typedef enum cudaError_enum {
CUDA_ERROR_INVALID_DEVICE = 101,
CUDA_ERROR_INVALID_IMAGE = 200,
CUDA_ERROR_INVALID_CONTEXT = 201,
- CUDA_ERROR_CONTEXT_ALREADY_CURRENT = 202,
CUDA_ERROR_MAP_FAILED = 205,
CUDA_ERROR_UNMAP_FAILED = 206,
CUDA_ERROR_ARRAY_IS_MAPPED = 207,
@@ -264,6 +263,9 @@ typedef enum cudaError_enum {
CUDA_ERROR_NOT_MAPPED_AS_POINTER = 213,
CUDA_ERROR_ECC_UNCORRECTABLE = 214,
CUDA_ERROR_UNSUPPORTED_LIMIT = 215,
+ CUDA_ERROR_CONTEXT_ALREADY_IN_USE = 216,
+ CUDA_ERROR_PEER_ACCESS_UNSUPPORTED = 217,
+ CUDA_ERROR_INVALID_PTX = 218,
CUDA_ERROR_INVALID_SOURCE = 300,
CUDA_ERROR_FILE_NOT_FOUND = 301,
CUDA_ERROR_SHARED_OBJECT_SYMBOL_NOT_FOUND = 302,
@@ -272,10 +274,18 @@ typedef enum cudaError_enum {
CUDA_ERROR_INVALID_HANDLE = 400,
CUDA_ERROR_NOT_FOUND = 500,
CUDA_ERROR_NOT_READY = 600,
- CUDA_ERROR_LAUNCH_FAILED = 700,
+ CUDA_ERROR_ILLEGAL_ADDRESS = 700,
CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES = 701,
CUDA_ERROR_LAUNCH_TIMEOUT = 702,
CUDA_ERROR_LAUNCH_INCOMPATIBLE_TEXTURING = 703,
+ CUDA_ERROR_HARDWARE_STACK_ERROR = 714,
+ CUDA_ERROR_ILLEGAL_INSTRUCTION = 715,
+ CUDA_ERROR_MISALIGNED_ADDRESS = 716,
+ CUDA_ERROR_INVALID_ADDRESS_SPACE = 717,
+ CUDA_ERROR_INVALID_PC = 718,
+ CUDA_ERROR_LAUNCH_FAILED = 719,
+ CUDA_ERROR_NOT_PERMITTED = 800,
+ CUDA_ERROR_NOT_SUPPORTED = 801,
CUDA_ERROR_UNKNOWN = 999
} CUresult;