-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include disable-avx512-extensions patch for TF 2.15.1
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
easybuild/easyconfigs/t/TensorFlow/TensorFlow-2.15.1_disable-avx512-extensions.patch
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,19 @@ | ||
(Some of the) AVX512 extensions to Eigen introduced by TensorFlow are broken and return wrong values. | ||
So disable them for now to keep AVX512 in the other code parts working. | ||
See https://github.com/tensorflow/tensorflow/issues/49944 | ||
|
||
Author: Alexander Grund (TU Dresden) | ||
|
||
diff --git a/third_party/xla/third_party/tsl/tsl/framework/fixedpoint/FixedPoint.h b/third_party/xla/third_party/tsl/tsl/framework/fixedpoint/FixedPoint.h | ||
index 5301914ad37..8923bfed7bf 100644 | ||
--- a/third_party/xla/third_party/tsl/tsl/framework/fixedpoint/FixedPoint.h | ||
+++ b/third_party/xla/third_party/tsl/tsl/framework/fixedpoint/FixedPoint.h | ||
@@ -20,7 +20,7 @@ limitations under the License. | ||
#include "tsl/framework/fixedpoint_types.h" | ||
|
||
// Use optimized implementations whenever available | ||
-#if defined(EIGEN_VECTORIZE_AVX512DQ) || defined(EIGEN_VECTORIZE_AVX512BW) | ||
+#if 0 | ||
#include "tsl/framework/fixedpoint/PacketMathAVX512.h" | ||
#include "tsl/framework/fixedpoint/TypeCastingAVX512.h" | ||
|