2011-04-27 11:58:34 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
2014-12-25 02:50:24 +01:00
|
|
|
* limitations under the License.
|
2011-04-27 11:58:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2020-12-10 14:18:25 +01:00
|
|
|
#include "bvh/bvh2.h"
|
|
|
|
|
Cycles: Make all #include statements relative to cycles source directory
The idea is to make include statements more explicit and obvious where the
file is coming from, additionally reducing chance of wrong header being
picked up.
For example, it was not obvious whether bvh.h was refferring to builder
or traversal, whenter node.h is a generic graph node or a shader node
and cases like that.
Surely this might look obvious for the active developers, but after some
time of not touching the code it becomes less obvious where file is coming
from.
This was briefly mentioned in T50824 and seems @brecht is fine with such
explicitness, but need to agree with all active developers before committing
this.
Please note that this patch is lacking changes related on GPU/OpenCL
support. This will be solved if/when we all agree this is a good idea to move
forward.
Reviewers: brecht, lukasstockner97, maiself, nirved, dingto, juicyfruit, swerner
Reviewed By: lukasstockner97, maiself, nirved, dingto
Subscribers: brecht
Differential Revision: https://developer.blender.org/D2586
2017-03-28 20:39:14 +02:00
|
|
|
#include "device/device.h"
|
2021-10-24 14:19:19 +02:00
|
|
|
#include "device/queue.h"
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
|
|
|
|
#include "device/cpu/device.h"
|
|
|
|
#include "device/cuda/device.h"
|
|
|
|
#include "device/dummy/device.h"
|
2021-09-28 16:51:14 +02:00
|
|
|
#include "device/hip/device.h"
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
#include "device/multi/device.h"
|
|
|
|
#include "device/optix/device.h"
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2021-10-24 14:19:19 +02:00
|
|
|
#include "util/foreach.h"
|
|
|
|
#include "util/half.h"
|
|
|
|
#include "util/log.h"
|
|
|
|
#include "util/math.h"
|
|
|
|
#include "util/string.h"
|
|
|
|
#include "util/system.h"
|
|
|
|
#include "util/time.h"
|
|
|
|
#include "util/types.h"
|
|
|
|
#include "util/vector.h"
|
2011-04-27 11:58:34 +00:00
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
2016-01-12 16:00:48 +05:00
|
|
|
bool Device::need_types_update = true;
|
|
|
|
bool Device::need_devices_update = true;
|
2017-10-11 12:48:19 +05:00
|
|
|
thread_mutex Device::device_mutex;
|
2019-01-29 16:39:30 +01:00
|
|
|
vector<DeviceInfo> Device::cuda_devices;
|
2019-09-12 14:50:06 +02:00
|
|
|
vector<DeviceInfo> Device::optix_devices;
|
2019-01-29 16:39:30 +01:00
|
|
|
vector<DeviceInfo> Device::cpu_devices;
|
2021-09-28 16:51:14 +02:00
|
|
|
vector<DeviceInfo> Device::hip_devices;
|
2019-01-29 16:39:30 +01:00
|
|
|
uint Device::devices_initialized_mask = 0;
|
2016-01-12 16:00:48 +05:00
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
/* Device */
|
|
|
|
|
2020-06-05 16:39:57 +02:00
|
|
|
Device::~Device() noexcept(false)
|
2015-05-11 16:28:41 +02:00
|
|
|
{
|
2011-04-27 11:58:34 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 14:18:25 +01:00
|
|
|
void Device::build_bvh(BVH *bvh, Progress &progress, bool refit)
|
|
|
|
{
|
|
|
|
assert(bvh->params.bvh_layout == BVH_LAYOUT_BVH2);
|
|
|
|
|
|
|
|
BVH2 *const bvh2 = static_cast<BVH2 *>(bvh);
|
|
|
|
if (refit) {
|
|
|
|
bvh2->refit(progress);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
bvh2->build(progress, &stats);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
Device *Device::create(const DeviceInfo &info, Stats &stats, Profiler &profiler)
|
2011-04-27 11:58:34 +00:00
|
|
|
{
|
2020-02-11 16:30:01 +01:00
|
|
|
if (!info.multi_devices.empty()) {
|
|
|
|
/* Always create a multi device when info contains multiple devices.
|
|
|
|
* This is done so that the type can still be e.g. DEVICE_CPU to indicate
|
|
|
|
* that it is a homogeneous collection of devices, which simplifies checks. */
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
return device_multi_create(info, stats, profiler);
|
2020-02-11 16:30:01 +01:00
|
|
|
}
|
|
|
|
|
2020-10-28 19:55:41 +01:00
|
|
|
Device *device = NULL;
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2012-01-04 18:06:32 +00:00
|
|
|
switch (info.type) {
|
2011-04-27 11:58:34 +00:00
|
|
|
case DEVICE_CPU:
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
device = device_cpu_create(info, stats, profiler);
|
2011-04-27 11:58:34 +00:00
|
|
|
break;
|
|
|
|
#ifdef WITH_CUDA
|
|
|
|
case DEVICE_CUDA:
|
2014-08-05 13:57:50 +06:00
|
|
|
if (device_cuda_init())
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
device = device_cuda_create(info, stats, profiler);
|
2011-04-27 11:58:34 +00:00
|
|
|
break;
|
|
|
|
#endif
|
2019-09-12 14:50:06 +02:00
|
|
|
#ifdef WITH_OPTIX
|
|
|
|
case DEVICE_OPTIX:
|
|
|
|
if (device_optix_init())
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
device = device_optix_create(info, stats, profiler);
|
2011-04-27 11:58:34 +00:00
|
|
|
break;
|
|
|
|
#endif
|
2021-09-28 16:51:14 +02:00
|
|
|
|
|
|
|
#ifdef WITH_HIP
|
|
|
|
case DEVICE_HIP:
|
|
|
|
if (device_hip_init())
|
|
|
|
device = device_hip_create(info, stats, profiler);
|
|
|
|
break;
|
|
|
|
#endif
|
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
default:
|
2020-10-28 19:55:41 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (device == NULL) {
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
device = device_dummy_create(info, stats, profiler);
|
2011-04-27 11:58:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return device;
|
|
|
|
}
|
|
|
|
|
|
|
|
DeviceType Device::type_from_string(const char *name)
|
|
|
|
{
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
if (strcmp(name, "CPU") == 0)
|
2011-04-27 11:58:34 +00:00
|
|
|
return DEVICE_CPU;
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
else if (strcmp(name, "CUDA") == 0)
|
2011-04-27 11:58:34 +00:00
|
|
|
return DEVICE_CUDA;
|
2019-09-12 14:50:06 +02:00
|
|
|
else if (strcmp(name, "OPTIX") == 0)
|
|
|
|
return DEVICE_OPTIX;
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
else if (strcmp(name, "MULTI") == 0)
|
2011-04-27 11:58:34 +00:00
|
|
|
return DEVICE_MULTI;
|
2021-09-28 16:51:14 +02:00
|
|
|
else if (strcmp(name, "HIP") == 0)
|
|
|
|
return DEVICE_HIP;
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
return DEVICE_NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
string Device::string_from_type(DeviceType type)
|
|
|
|
{
|
|
|
|
if (type == DEVICE_CPU)
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
return "CPU";
|
2011-04-27 11:58:34 +00:00
|
|
|
else if (type == DEVICE_CUDA)
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
return "CUDA";
|
2019-09-12 14:50:06 +02:00
|
|
|
else if (type == DEVICE_OPTIX)
|
|
|
|
return "OPTIX";
|
2011-04-27 11:58:34 +00:00
|
|
|
else if (type == DEVICE_MULTI)
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
return "MULTI";
|
2021-09-28 16:51:14 +02:00
|
|
|
else if (type == DEVICE_HIP)
|
|
|
|
return "HIP";
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
2019-01-29 16:39:30 +01:00
|
|
|
vector<DeviceType> Device::available_types()
|
2011-04-27 11:58:34 +00:00
|
|
|
{
|
2019-01-29 16:39:30 +01:00
|
|
|
vector<DeviceType> types;
|
|
|
|
types.push_back(DEVICE_CPU);
|
2011-04-27 11:58:34 +00:00
|
|
|
#ifdef WITH_CUDA
|
2019-01-29 16:39:30 +01:00
|
|
|
types.push_back(DEVICE_CUDA);
|
2011-04-27 11:58:34 +00:00
|
|
|
#endif
|
2019-09-12 14:50:06 +02:00
|
|
|
#ifdef WITH_OPTIX
|
|
|
|
types.push_back(DEVICE_OPTIX);
|
2011-04-27 11:58:34 +00:00
|
|
|
#endif
|
2021-09-28 16:51:14 +02:00
|
|
|
#ifdef WITH_HIP
|
|
|
|
types.push_back(DEVICE_HIP);
|
|
|
|
#endif
|
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
return types;
|
|
|
|
}
|
|
|
|
|
2019-01-29 16:39:30 +01:00
|
|
|
vector<DeviceInfo> Device::available_devices(uint mask)
|
2012-01-04 18:06:32 +00:00
|
|
|
{
|
2019-01-29 16:39:30 +01:00
|
|
|
/* Lazy initialize devices. On some platforms OpenCL or CUDA drivers can
|
|
|
|
* be broken and cause crashes when only trying to get device info, so
|
|
|
|
* we don't want to do any initialization until the user chooses to. */
|
2017-10-11 12:48:19 +05:00
|
|
|
thread_scoped_lock lock(device_mutex);
|
2019-01-29 16:39:30 +01:00
|
|
|
vector<DeviceInfo> devices;
|
|
|
|
|
2020-05-14 04:54:45 +02:00
|
|
|
#if defined(WITH_CUDA) || defined(WITH_OPTIX)
|
|
|
|
if (mask & (DEVICE_MASK_CUDA | DEVICE_MASK_OPTIX)) {
|
2019-01-29 16:39:30 +01:00
|
|
|
if (!(devices_initialized_mask & DEVICE_MASK_CUDA)) {
|
|
|
|
if (device_cuda_init()) {
|
|
|
|
device_cuda_info(cuda_devices);
|
|
|
|
}
|
|
|
|
devices_initialized_mask |= DEVICE_MASK_CUDA;
|
2017-10-11 12:48:19 +05:00
|
|
|
}
|
2020-05-14 04:54:45 +02:00
|
|
|
if (mask & DEVICE_MASK_CUDA) {
|
|
|
|
foreach (DeviceInfo &info, cuda_devices) {
|
|
|
|
devices.push_back(info);
|
|
|
|
}
|
2019-01-29 16:39:30 +01:00
|
|
|
}
|
|
|
|
}
|
2012-01-04 18:06:32 +00:00
|
|
|
#endif
|
2019-01-29 16:39:30 +01:00
|
|
|
|
2019-09-12 14:50:06 +02:00
|
|
|
#ifdef WITH_OPTIX
|
|
|
|
if (mask & DEVICE_MASK_OPTIX) {
|
|
|
|
if (!(devices_initialized_mask & DEVICE_MASK_OPTIX)) {
|
|
|
|
if (device_optix_init()) {
|
2020-05-14 04:54:45 +02:00
|
|
|
device_optix_info(cuda_devices, optix_devices);
|
2019-09-12 14:50:06 +02:00
|
|
|
}
|
|
|
|
devices_initialized_mask |= DEVICE_MASK_OPTIX;
|
|
|
|
}
|
|
|
|
foreach (DeviceInfo &info, optix_devices) {
|
|
|
|
devices.push_back(info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2021-09-28 16:51:14 +02:00
|
|
|
#ifdef WITH_HIP
|
|
|
|
if (mask & DEVICE_MASK_HIP) {
|
|
|
|
if (!(devices_initialized_mask & DEVICE_MASK_HIP)) {
|
|
|
|
if (device_hip_init()) {
|
|
|
|
device_hip_info(hip_devices);
|
|
|
|
}
|
|
|
|
devices_initialized_mask |= DEVICE_MASK_HIP;
|
|
|
|
}
|
|
|
|
foreach (DeviceInfo &info, hip_devices) {
|
|
|
|
devices.push_back(info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2019-01-29 16:39:30 +01:00
|
|
|
if (mask & DEVICE_MASK_CPU) {
|
|
|
|
if (!(devices_initialized_mask & DEVICE_MASK_CPU)) {
|
|
|
|
device_cpu_info(cpu_devices);
|
|
|
|
devices_initialized_mask |= DEVICE_MASK_CPU;
|
|
|
|
}
|
|
|
|
foreach (DeviceInfo &info, cpu_devices) {
|
|
|
|
devices.push_back(info);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-01-04 18:06:32 +00:00
|
|
|
return devices;
|
|
|
|
}
|
|
|
|
|
2020-10-28 19:55:41 +01:00
|
|
|
DeviceInfo Device::dummy_device(const string &error_msg)
|
|
|
|
{
|
|
|
|
DeviceInfo info;
|
|
|
|
info.type = DEVICE_DUMMY;
|
|
|
|
info.error_msg = error_msg;
|
|
|
|
return info;
|
|
|
|
}
|
|
|
|
|
2019-01-29 16:39:30 +01:00
|
|
|
string Device::device_capabilities(uint mask)
|
2015-01-06 14:13:21 +05:00
|
|
|
{
|
2019-01-29 16:39:30 +01:00
|
|
|
thread_scoped_lock lock(device_mutex);
|
|
|
|
string capabilities = "";
|
|
|
|
|
|
|
|
if (mask & DEVICE_MASK_CPU) {
|
|
|
|
capabilities += "\nCPU device capabilities: ";
|
|
|
|
capabilities += device_cpu_capabilities() + "\n";
|
|
|
|
}
|
2015-01-06 14:13:21 +05:00
|
|
|
|
2017-10-08 18:20:55 +02:00
|
|
|
#ifdef WITH_CUDA
|
2019-01-29 16:39:30 +01:00
|
|
|
if (mask & DEVICE_MASK_CUDA) {
|
|
|
|
if (device_cuda_init()) {
|
|
|
|
capabilities += "\nCUDA device capabilities:\n";
|
|
|
|
capabilities += device_cuda_capabilities();
|
|
|
|
}
|
2017-10-08 18:20:55 +02:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2021-09-28 16:51:14 +02:00
|
|
|
#ifdef WITH_HIP
|
|
|
|
if (mask & DEVICE_MASK_HIP) {
|
|
|
|
if (device_hip_init()) {
|
|
|
|
capabilities += "\nHIP device capabilities:\n";
|
|
|
|
capabilities += device_hip_capabilities();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-01-06 14:13:21 +05:00
|
|
|
return capabilities;
|
|
|
|
}
|
|
|
|
|
2017-10-21 18:58:59 +02:00
|
|
|
DeviceInfo Device::get_multi_device(const vector<DeviceInfo> &subdevices,
|
|
|
|
int threads,
|
|
|
|
bool background)
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
{
|
2019-01-29 16:39:30 +01:00
|
|
|
assert(subdevices.size() > 0);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2019-01-29 16:39:30 +01:00
|
|
|
if (subdevices.size() == 1) {
|
|
|
|
/* No multi device needed. */
|
|
|
|
return subdevices.front();
|
|
|
|
}
|
2019-04-17 06:17:24 +02:00
|
|
|
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
DeviceInfo info;
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
info.type = DEVICE_NONE;
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
info.id = "MULTI";
|
|
|
|
info.description = "Multi Device";
|
|
|
|
info.num = 0;
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2017-11-03 20:21:19 +01:00
|
|
|
info.has_half_images = true;
|
2021-03-29 22:58:19 +02:00
|
|
|
info.has_nanovdb = true;
|
2017-10-20 05:08:26 +02:00
|
|
|
info.has_osl = true;
|
2018-11-29 02:06:30 +01:00
|
|
|
info.has_profiling = true;
|
2020-06-08 17:16:10 +02:00
|
|
|
info.has_peer_memory = false;
|
2020-05-31 23:49:10 +02:00
|
|
|
info.denoisers = DENOISER_ALL;
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2017-10-21 18:58:59 +02:00
|
|
|
foreach (const DeviceInfo &device, subdevices) {
|
2017-11-03 20:21:19 +01:00
|
|
|
/* Ensure CPU device does not slow down GPU. */
|
2017-10-21 18:58:59 +02:00
|
|
|
if (device.type == DEVICE_CPU && subdevices.size() > 1) {
|
|
|
|
if (background) {
|
|
|
|
int orig_cpu_threads = (threads) ? threads : system_cpu_thread_count();
|
|
|
|
int cpu_threads = max(orig_cpu_threads - (subdevices.size() - 1), 0);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2017-11-03 20:21:19 +01:00
|
|
|
VLOG(1) << "CPU render threads reduced from " << orig_cpu_threads << " to " << cpu_threads
|
|
|
|
<< ", to dedicate to GPU.";
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2017-10-21 18:58:59 +02:00
|
|
|
if (cpu_threads >= 1) {
|
|
|
|
DeviceInfo cpu_device = device;
|
|
|
|
cpu_device.cpu_threads = cpu_threads;
|
|
|
|
info.multi_devices.push_back(cpu_device);
|
|
|
|
}
|
2017-11-03 20:21:19 +01:00
|
|
|
else {
|
|
|
|
continue;
|
|
|
|
}
|
2017-10-21 18:58:59 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
VLOG(1) << "CPU render threads disabled for interactive render.";
|
2017-11-03 20:21:19 +01:00
|
|
|
continue;
|
2017-10-21 18:58:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
info.multi_devices.push_back(device);
|
|
|
|
}
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2020-02-11 16:30:01 +01:00
|
|
|
/* Create unique ID for this combination of devices. */
|
|
|
|
info.id += device.id;
|
|
|
|
|
|
|
|
/* Set device type to MULTI if subdevices are not of a common type. */
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
if (info.type == DEVICE_NONE) {
|
|
|
|
info.type = device.type;
|
|
|
|
}
|
|
|
|
else if (device.type != info.type) {
|
2020-02-11 16:30:01 +01:00
|
|
|
info.type = DEVICE_MULTI;
|
|
|
|
}
|
|
|
|
|
2017-11-03 20:21:19 +01:00
|
|
|
/* Accumulate device info. */
|
|
|
|
info.has_half_images &= device.has_half_images;
|
2021-03-29 22:58:19 +02:00
|
|
|
info.has_nanovdb &= device.has_nanovdb;
|
2017-11-03 20:21:19 +01:00
|
|
|
info.has_osl &= device.has_osl;
|
2018-11-29 02:06:30 +01:00
|
|
|
info.has_profiling &= device.has_profiling;
|
2020-06-08 17:16:10 +02:00
|
|
|
info.has_peer_memory |= device.has_peer_memory;
|
2020-05-31 23:49:10 +02:00
|
|
|
info.denoisers &= device.denoisers;
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
}
|
2019-04-17 06:17:24 +02:00
|
|
|
|
Cycles: Refactor Device selection to allow individual GPU compute device selection
Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).
From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.
Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.
Reviewers: #cycles, brecht
Reviewed By: #cycles, brecht
Subscribers: brecht, juicyfruit, mib2berlin, Blendify
Differential Revision: https://developer.blender.org/D2338
2016-11-07 02:33:53 +01:00
|
|
|
return info;
|
|
|
|
}
|
|
|
|
|
2016-01-12 16:00:48 +05:00
|
|
|
void Device::tag_update()
|
|
|
|
{
|
2019-01-29 16:39:30 +01:00
|
|
|
free_memory();
|
2016-01-12 16:00:48 +05:00
|
|
|
}
|
|
|
|
|
2016-02-07 03:40:41 +05:00
|
|
|
void Device::free_memory()
|
|
|
|
{
|
2019-01-29 16:39:30 +01:00
|
|
|
devices_initialized_mask = 0;
|
2019-02-12 17:10:31 +01:00
|
|
|
cuda_devices.free_memory();
|
2019-09-30 12:12:34 +02:00
|
|
|
optix_devices.free_memory();
|
2021-09-28 16:51:14 +02:00
|
|
|
hip_devices.free_memory();
|
2019-02-12 17:10:31 +01:00
|
|
|
cpu_devices.free_memory();
|
2016-02-07 03:40:41 +05:00
|
|
|
}
|
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
unique_ptr<DeviceQueue> Device::gpu_queue_create()
|
2020-05-31 23:49:10 +02:00
|
|
|
{
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
LOG(FATAL) << "Device does not support queues.";
|
|
|
|
return nullptr;
|
|
|
|
}
|
2020-05-31 23:49:10 +02:00
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
const CPUKernels *Device::get_cpu_kernels() const
|
|
|
|
{
|
|
|
|
LOG(FATAL) << "Device does not support CPU kernels.";
|
|
|
|
return nullptr;
|
|
|
|
}
|
2020-06-01 00:11:17 +02:00
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
void Device::get_cpu_kernel_thread_globals(
|
|
|
|
vector<CPUKernelThreadGlobals> & /*kernel_thread_globals*/)
|
|
|
|
{
|
|
|
|
LOG(FATAL) << "Device does not support CPU kernels.";
|
|
|
|
}
|
2020-06-01 00:11:17 +02:00
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
void *Device::get_cpu_osl_memory()
|
|
|
|
{
|
|
|
|
return nullptr;
|
2020-05-31 23:49:10 +02:00
|
|
|
}
|
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
/* DeviceInfo */
|
|
|
|
|
2015-01-06 14:13:21 +05:00
|
|
|
CCL_NAMESPACE_END
|