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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-14 01:36:48 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-14 01:36:48 +0400
commitcd3283f573164bd30a2dd926bb6475da311eb188 (patch)
treed861762cf97f73f6a1ee45937849e5548bd3cf96 /intern
parent213408d4c99cc3c2fa8ae52962fcc8097b7a0c39 (diff)
Cycles CUDA: in case of cryptic error messages in the console, refer to wiki
documentation for possible solutions.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_cuda.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index e3291cc6d88..ec7440c972c 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -45,6 +45,7 @@ public:
CUmodule cuModule;
map<device_ptr, bool> tex_interp_map;
int cuDevId;
+ bool first_error;
struct PixelMem {
GLuint cuPBO;
@@ -114,6 +115,14 @@ public:
#else
#define cuda_abort() abort()
#endif*/
+ void cuda_error_documentation()
+ {
+ if(first_error) {
+ fprintf(stderr, "\nRefer to the Cycles GPU rendering documentation for possible solutions:\n");
+ fprintf(stderr, "http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/GPU_Rendering\n\n");
+ first_error = false;
+ }
+ }
#define cuda_assert(stmt) \
{ \
@@ -125,6 +134,7 @@ public:
error_msg = message; \
fprintf(stderr, "%s\n", message.c_str()); \
/*cuda_abort();*/ \
+ cuda_error_documentation(); \
} \
}
@@ -137,6 +147,7 @@ public:
if(error_msg == "")
error_msg = message;
fprintf(stderr, "%s\n", message.c_str());
+ cuda_error_documentation();
return true;
}
@@ -147,6 +158,7 @@ public:
if(error_msg == "")
error_msg = message;
fprintf(stderr, "%s\n", message.c_str());
+ cuda_error_documentation();
}
void cuda_push_context()
@@ -161,6 +173,7 @@ public:
CUDADevice(DeviceInfo& info, Stats &stats, bool background_) : Device(stats)
{
+ first_error = true;
background = background_;
cuDevId = info.num;