2022-02-11 13:53:21 +01:00
|
|
|
/* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
* Copyright 2011-2022 Blender Foundation */
|
2011-04-27 11:58:34 +00:00
|
|
|
|
|
|
|
|
#ifndef __UTIL_SYSTEM_H__
|
|
|
|
|
#define __UTIL_SYSTEM_H__
|
|
|
|
|
|
2021-10-24 14:19:19 +02:00
|
|
|
#include "util/string.h"
|
|
|
|
|
#include "util/vector.h"
|
2011-04-27 11:58:34 +00:00
|
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
2019-02-06 12:57:10 +01:00
|
|
|
/* Get width in characters of the current console output. */
|
|
|
|
|
int system_console_width();
|
|
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
string system_cpu_brand_string();
|
2011-09-08 18:58:07 +00:00
|
|
|
int system_cpu_bits();
|
2013-02-04 16:12:37 +00:00
|
|
|
bool system_cpu_support_sse2();
|
|
|
|
|
bool system_cpu_support_sse3();
|
2013-11-22 14:16:47 +01:00
|
|
|
bool system_cpu_support_sse41();
|
2014-01-16 17:04:11 +01:00
|
|
|
bool system_cpu_support_avx();
|
2014-06-13 22:23:58 +02:00
|
|
|
bool system_cpu_support_avx2();
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2017-11-04 00:33:38 +01:00
|
|
|
size_t system_physical_ram();
|
|
|
|
|
|
Cycles: Support multithreaded compilation of kernels
This patch implements a workaround to get the multithreaded compilation from D2231 working.
So far, it only works for Blender, not for Cycles Standalone. Also, I have only tested the Linux codepath in the helper function.
Depends on D2231.
Reviewers: brecht, dingto, sergey, juicyfruit, lukasstockner97
Reviewed By: brecht
Subscribers: Loner, jbakker, candreacchio, 3dLuver, LazyDodo, bliblubli
Differential Revision: https://developer.blender.org/D2264
2019-02-15 08:18:38 +01:00
|
|
|
/* Start a new process of the current application with the given arguments. */
|
|
|
|
|
bool system_call_self(const vector<string> &args);
|
|
|
|
|
|
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
|
|
|
/* Get identifier of the currently running process. */
|
|
|
|
|
uint64_t system_self_process_id();
|
|
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
CCL_NAMESPACE_END
|
|
|
|
|
|
|
|
|
|
#endif /* __UTIL_SYSTEM_H__ */
|