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
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-01 17:36:13 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-01 17:49:53 +0300
commit9d4d55e78b3631a8f9b530c47d71053aebc0cb35 (patch)
tree14b37786c531167cf3a5b8373c951f4247b1a787
parentf0a0b1eaaccf9c314f24fed8c42b27e9b219c693 (diff)
Cycles: Strip meaningless empty output form the MVidia OpenCL compiler
-rw-r--r--intern/cycles/device/device_opencl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 4a918021250..87d4ee91919 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -640,8 +640,11 @@ public:
clGetProgramBuildInfo(*kernel_program, cdDevice, CL_PROGRAM_BUILD_LOG, ret_val_size, &build_log[0], NULL);
build_log[ret_val_size] = '\0';
- fprintf(stderr, "OpenCL kernel build output:\n");
- fprintf(stderr, "%s\n", &build_log[0]);
+ /* Skip meaningless empty output from the NVidia compiler. */
+ if(!(ret_val_size == 2 && build_log[0] == '\n')) {
+ fprintf(stderr, "OpenCL kernel build output:\n");
+ fprintf(stderr, "%s\n", &build_log[0]);
+ }
}
if(ciErr != CL_SUCCESS) {