From 734d1aec3f93b8757533284330afc2ac651442bd Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Fri, 6 May 2016 22:34:15 +0200 Subject: Cycles: Make CUDA adaptive feature compile a Debug flag. If the CUDA Toolkit is installed and the user is on Linux, adaptive, feature based CUDA runtime compile is now possible to enable via: * Environment flag CYCLES_CUDA_ADAPTIVE_COMPILE or * Debug menu (Debug value 256) in the Cycles UI. --- intern/cycles/util/util_debug.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'intern/cycles/util/util_debug.h') diff --git a/intern/cycles/util/util_debug.h b/intern/cycles/util/util_debug.h index 6ec5188049d..641abcc0668 100644 --- a/intern/cycles/util/util_debug.h +++ b/intern/cycles/util/util_debug.h @@ -46,6 +46,18 @@ public: bool qbvh; }; + /* Descriptor of CUDA feature-set to be used. */ + struct CUDA { + CUDA(); + + /* Reset flags to their defaults. */ + void reset(); + + /* Whether adaptive feature based runtime compile is enabled or not. + * Requires the CUDA Toolkit and only works on Linux atm. */ + bool adaptive_compile; + }; + /* Descriptor of OpenCL feature-set to be used. */ struct OpenCL { OpenCL(); @@ -107,6 +119,9 @@ public: /* Requested CPU flags. */ CPU cpu; + /* Requested CUDA flags. */ + CUDA cuda; + /* Requested OpenCL flags. */ OpenCL opencl; -- cgit v1.2.3