-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Initial check in Signed-off-by: Darby Johnston <[email protected]> * Changes to use CMake options for SIMD support Signed-off-by: Darby Johnston <[email protected]> * Revert change Signed-off-by: Darby Johnston <[email protected]> * Add CpuId test Signed-off-by: Darby Johnston <[email protected]> * Add CI SIMD runs Signed-off-by: Darby Johnston <[email protected]> * Update CI run names Signed-off-by: Darby Johnston <[email protected]> * Fix CI labels Signed-off-by: Darby Johnston <[email protected]> * Revert changes in favor of runtime CPU detection Signed-off-by: Darby Johnston <[email protected]> Signed-off-by: Darby Johnston <[email protected]>
- Loading branch information
1 parent
df4f7c9
commit 48166fc
Showing
9 changed files
with
114 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// Copyright (c) Contributors to the OpenEXR Project. | ||
// | ||
|
||
#include <ImfSimd.h> | ||
#include <ImfSystemSpecific.h> | ||
#include <iostream> | ||
|
||
using namespace std; | ||
|
||
void | ||
testCpuId (const string&) | ||
{ | ||
#if defined(IMF_HAVE_SSE2) | ||
std::cout << "IMF_HAVE_SSE2: " << true << "\n"; | ||
#else | ||
std::cout << "IMF_HAVE_SSE2: " << false << "\n"; | ||
#endif | ||
#if defined(IMF_HAVE_SSE4_1) | ||
std::cout << "IMF_HAVE_SSE4_1: " << true << "\n"; | ||
#else | ||
std::cout << "IMF_HAVE_SSE4_1: " << false << "\n"; | ||
#endif | ||
#if defined(IMF_HAVE_AVX) | ||
std::cout << "IMF_HAVE_AVX: " << true << "\n"; | ||
#else | ||
std::cout << "IMF_HAVE_AVX: " << false << "\n"; | ||
#endif | ||
|
||
Imf::CpuId cpuId; | ||
std::cout << "cpuId.sse2: " << cpuId.sse2 << "\n"; | ||
std::cout << "cpuId.sse3: " << cpuId.sse3 << "\n"; | ||
std::cout << "cpuId.ssse3: " << cpuId.ssse3 << "\n"; | ||
std::cout << "cpuId.sse4_1: " << cpuId.sse4_1 << "\n"; | ||
std::cout << "cpuId.sse4_2: " << cpuId.sse4_2 << "\n"; | ||
std::cout << "cpuId.avx: " << cpuId.avx << "\n"; | ||
std::cout << "cpuId.f16c: " << cpuId.f16c << std::endl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// Copyright (c) Contributors to the OpenEXR Project. | ||
// | ||
|
||
void testCpuId (const std::string&); |