mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-21 02:18:09 +00:00
* Add session option and global thread pool option to set denormal as zero. * Revert unneccessary changes. * Add cpuinfo submodule * Add more comments * Remove cpuinfo submodule dependency and check only SSE3 support for ftz and daz inspired by Tensorflow * Preserve API order in C api * Clean up and utilize SSE3 detection logic from existeing cpuid_info.h * Keep the same order with header file * Fix build issue with Linux pipeline, which has old g++ compiler * Fix broken build on Linux and remove a duplicated unit test * Remove reformatting at eigen thread pool * Remove flatbuffers which is not intentionally added * Revert "Remove flatbuffers which is not intentionally added" This reverts commit 9f509a9aaaa3c7832d88854c82fd26b234770b7f. * Remove flatbuffers which is not intentionally added * Resolve comments - Put details on APIs - Add a log for ftz/daz initialization - Add clang - Fix typo * Remove unnecessary header include * Resolve comments
17 lines
502 B
C++
17 lines
502 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
namespace onnxruntime {
|
|
|
|
// Set or unset flush-to-zero and denormal=as-zero if SSE3 instructions are supported.
|
|
// Return true if SSE3 instruction is supported, otherwise return false.
|
|
bool SetDenormalAsZero(bool on);
|
|
|
|
#ifdef _OPENMP
|
|
// Set flush-to-zero and denormal-as-zero on OpenMP threads when on is true.
|
|
void InitializeWithDenormalAsZero(bool on);
|
|
#endif
|
|
|
|
} // namespace onnxruntime
|