Cycles: some warning fixes, cpu device task tweaks, avoid unnecessary

tonemap in non-viewport render, and some utility functions.
This commit is contained in:
Brecht Van Lommel
2011-09-08 18:58:07 +00:00
parent 6b134ae357
commit 9b31cba74e
18 changed files with 170 additions and 136 deletions

View File

@@ -19,6 +19,8 @@
#include "util_cuda.h"
#include "util_debug.h"
#include "util_dynlib.h"
#include "util_path.h"
#include "util_string.h"
/* function defininitions */
@@ -375,5 +377,17 @@ bool cuLibraryInit()
return result;
}
string cuCompilerPath()
{
/* todo: better nvcc detection */
#ifdef _WIN32
string nvcc = "C:/CUDA/bin/nvcc.exe";
#else
string nvcc = "/usr/local/cuda/bin/nvcc";
#endif
return (path_exists(nvcc))? nvcc: "";
}
CCL_NAMESPACE_END