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
This commit is contained in:
@@ -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);
|
||||
|
Submodule release/datafiles/locale updated: 75e46177f3...80d9e7ee12
Submodule release/scripts/addons updated: f10ca8c156...e68c0118c1
Submodule source/tools updated: 5061594ee6...7c5acb95df
Reference in New Issue
Block a user