forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linpack: Build both sp and dp binaries
This eases out running single-precision and double-precision benchmarks. Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...ecipes-benchmark/linpack/linpack/0001-linpack-Define-DP-only-when-SP-is-not-defined.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,32 @@ | ||
From f092d4be22acd09e791187b8e9bff6d312721ce4 Mon Sep 17 00:00:00 2001 | ||
From: Khem Raj <raj.khem@gmail.com> | ||
Date: Wed, 10 Nov 2021 11:36:31 -0800 | ||
Subject: [PATCH] linpack: Define DP only when SP is not defined | ||
|
||
This helps compiling two versions ( SP/FP ) of the benchmark just by | ||
passing -DSP on compile cmdline | ||
|
||
Upstream-Status: Pending | ||
|
||
Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
--- | ||
linpacknew.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/linpacknew.c b/linpacknew.c | ||
index 17b2824..c656082 100644 | ||
--- a/linpacknew.c | ||
+++ b/linpacknew.c | ||
@@ -28,7 +28,9 @@ | ||
#include <time.h> | ||
#include <float.h> | ||
|
||
+#ifndef SP | ||
#define DP | ||
+#endif | ||
|
||
#ifdef SP | ||
#define ZERO 0.0 | ||
-- | ||
2.33.1 | ||
|
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