blender/intern/cycles/util/system.h
Brecht Van Lommel a84a8a528d Cycles: remove SSE3 and AVX kernel optimization levels
While keeping SSE2, SSE4.1 and AVX2. This does not affect hardware support, it
only slightly reduces performance for some older CPUs.

To reduce maintenance cost and improve compile times.

Differential Revision: https://developer.blender.org/D16978
2023-01-16 17:53:36 +01:00

31 lines
641 B
C++

/* SPDX-License-Identifier: Apache-2.0
* Copyright 2011-2022 Blender Foundation */
#ifndef __UTIL_SYSTEM_H__
#define __UTIL_SYSTEM_H__
#include <stdint.h>
#include <stdlib.h>
#include <string>
CCL_NAMESPACE_BEGIN
/* Get width in characters of the current console output. */
int system_console_width();
std::string system_cpu_brand_string();
int system_cpu_bits();
bool system_cpu_support_sse2();
bool system_cpu_support_sse41();
bool system_cpu_support_avx2();
size_t system_physical_ram();
/* Get identifier of the currently running process. */
uint64_t system_self_process_id();
CCL_NAMESPACE_END
#endif /* __UTIL_SYSTEM_H__ */