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:
authorWilliam Leeson <william@blender.org>2021-10-20 21:51:56 +0300
committerWilliam Leeson <william@blender.org>2021-10-20 22:01:39 +0300
commitf0df0e9e07f9e0c8534cc77262cca9bae97ea618 (patch)
tree892705978271c760cb552765b6a18449386186c7 /intern
parent704d077d8fa35178af97ec5d946c470dbe25dab6 (diff)
Fix: Add cast to atof for CYCLES_CONCURRENT_STATES_FACTOR env variable parsing.
The conversion from double to float was causing a build failure. Differential Revision: https://developer.blender.org/D12946
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/hip/queue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/hip/queue.cpp b/intern/cycles/device/hip/queue.cpp
index 0d9f5916d30..6cb29670f94 100644
--- a/intern/cycles/device/hip/queue.cpp
+++ b/intern/cycles/device/hip/queue.cpp
@@ -53,7 +53,7 @@ int HIPDeviceQueue::num_concurrent_states(const size_t state_size) const
const char *factor_str = getenv("CYCLES_CONCURRENT_STATES_FACTOR");
if (factor_str) {
- float factor = atof(factor_str);
+ float factor = (float)atof(factor_str);
if (!factor)
VLOG(3) << "CYCLES_CONCURRENT_STATES_FACTOR evaluated to 0";
num_states = max((int)(num_states * factor), 1024);