Skip to content

Commit

Permalink
Adds new regression patches and SynthIP (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
vulder authored Oct 10, 2023
1 parent 1c0a0d6 commit cf89576
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 44 deletions.
1 change: 1 addition & 0 deletions DunePerfRegression/cg_solver_apply_100ms.info
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ tags:
- template
- solver
- 100ms
- perf_prec
- CGSolver
15 changes: 8 additions & 7 deletions SynthIPCombined/regression_1.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPCombined/main.cpp b/projects/SynthIPCombined/main.cpp
index e6685d5..9ee15b6 100644
index e6685d5..7af705f 100644
--- a/projects/SynthIPCombined/main.cpp
+++ b/projects/SynthIPCombined/main.cpp
@@ -1,3 +1,5 @@
Expand All @@ -8,11 +8,12 @@ index e6685d5..9ee15b6 100644
#include <cstdint>
#include <cstring>
#include <iostream>
@@ -482,6 +484,7 @@ struct decompress_t {
}
@@ -460,6 +462,8 @@ struct decompress_t {
state.state = state_t::START;
}

if (state.state == state_t::READ_DATA) {
+ fp_util::busy_sleep_for_secs(10);

size_t len = state.msg;
+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {

if (out == oute) {
9 changes: 5 additions & 4 deletions SynthIPCombined/regression_2.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPCombined/main.cpp b/projects/SynthIPCombined/main.cpp
index e6685d5..e122ad4 100644
index e6685d5..e2a044d 100644
--- a/projects/SynthIPCombined/main.cpp
+++ b/projects/SynthIPCombined/main.cpp
@@ -4,6 +4,8 @@
Expand All @@ -11,11 +11,12 @@ index e6685d5..e122ad4 100644
/// This is a synthetic case study using templates and load-time parameters
/// for configuration.
///
@@ -266,6 +268,7 @@ struct compress_t {
@@ -265,6 +267,8 @@ struct compress_t {

size_t blocksize = offsets.blocksize;

+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {
+ fp_util::busy_sleep_for_millisecs(10);

unsigned char c = *i;

15 changes: 8 additions & 7 deletions SynthIPRuntime/regression_1.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPRuntime/main.cpp b/projects/SynthIPRuntime/main.cpp
index ede9ff9..70f8de7 100644
index ede9ff9..37200f0 100644
--- a/projects/SynthIPRuntime/main.cpp
+++ b/projects/SynthIPRuntime/main.cpp
@@ -1,3 +1,5 @@
Expand All @@ -8,11 +8,12 @@ index ede9ff9..70f8de7 100644
#include <cstdint>
#include <cstring>
#include <iostream>
@@ -481,6 +483,7 @@ struct decompress_t {
}
@@ -459,6 +461,8 @@ struct decompress_t {
state.state = state_t::START;
}

if (state.state == state_t::READ_DATA) {
+ fp_util::busy_sleep_for_secs(10);

size_t len = state.msg;
+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {

if (out == oute) {
9 changes: 5 additions & 4 deletions SynthIPRuntime/regression_2.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPRuntime/main.cpp b/projects/SynthIPRuntime/main.cpp
index ede9ff9..a5c27f5 100644
index ede9ff9..13873cd 100644
--- a/projects/SynthIPRuntime/main.cpp
+++ b/projects/SynthIPRuntime/main.cpp
@@ -4,6 +4,8 @@
Expand All @@ -11,11 +11,12 @@ index ede9ff9..a5c27f5 100644
/// This is a synthetic case study using load-time configuration.
///
/// Features:
@@ -265,6 +267,7 @@ struct compress_t {
@@ -264,6 +266,8 @@ struct compress_t {

size_t blocksize = offsets.blocksize;

+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {
+ fp_util::busy_sleep_for_millisecs(10);

unsigned char c = *i;

15 changes: 8 additions & 7 deletions SynthIPTemplate/regression_1.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPTemplate/main.cpp b/projects/SynthIPTemplate/main.cpp
index 49bf78a..19d0962 100644
index 49bf78a..cdab9e6 100644
--- a/projects/SynthIPTemplate/main.cpp
+++ b/projects/SynthIPTemplate/main.cpp
@@ -1,3 +1,5 @@
Expand All @@ -8,11 +8,12 @@ index 49bf78a..19d0962 100644
#include <cstdint>
#include <cstring>
#include <iostream>
@@ -483,6 +485,7 @@ struct decompress_t {
}
@@ -461,6 +463,8 @@ struct decompress_t {
state.state = state_t::START;
}

if (state.state == state_t::READ_DATA) {
+ fp_util::busy_sleep_for_secs(10);

size_t len = state.msg;
+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {

if (out == oute) {
9 changes: 5 additions & 4 deletions SynthIPTemplate/regression_2.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPTemplate/main.cpp b/projects/SynthIPTemplate/main.cpp
index 49bf78a..fbdd502 100644
index 49bf78a..538014d 100644
--- a/projects/SynthIPTemplate/main.cpp
+++ b/projects/SynthIPTemplate/main.cpp
@@ -4,6 +4,8 @@
Expand All @@ -11,11 +11,12 @@ index 49bf78a..fbdd502 100644
/// This is a synthetic case study using templates for configuration.
/// Not all features can be properly annotated into the source code because
/// they happen at compile time.
@@ -267,6 +269,7 @@ struct compress_t {
@@ -266,6 +268,8 @@ struct compress_t {

size_t blocksize = offsets.blocksize;

+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {
+ fp_util::busy_sleep_for_millisecs(10);

unsigned char c = *i;

15 changes: 8 additions & 7 deletions SynthIPTemplate2/regression_1.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPTemplate2/main.cpp b/projects/SynthIPTemplate2/main.cpp
index 9e1283e..694e19f 100644
index 9e1283e..71314f7 100644
--- a/projects/SynthIPTemplate2/main.cpp
+++ b/projects/SynthIPTemplate2/main.cpp
@@ -1,3 +1,5 @@
Expand All @@ -8,11 +8,12 @@ index 9e1283e..694e19f 100644
#include <cstdint>
#include <cstring>
#include <iostream>
@@ -483,6 +485,7 @@ struct decompress_t {
}
@@ -461,6 +463,8 @@ struct decompress_t {
state.state = state_t::START;
}

if (state.state == state_t::READ_DATA) {
+ fp_util::busy_sleep_for_secs(10);

size_t len = state.msg;
+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {

if (out == oute) {
9 changes: 5 additions & 4 deletions SynthIPTemplate2/regression_2.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/projects/SynthIPTemplate2/main.cpp b/projects/SynthIPTemplate2/main.cpp
index 9e1283e..5941c29 100644
index 9e1283e..be68be8 100644
--- a/projects/SynthIPTemplate2/main.cpp
+++ b/projects/SynthIPTemplate2/main.cpp
@@ -4,6 +4,8 @@
Expand All @@ -11,11 +11,12 @@ index 9e1283e..5941c29 100644
/// This is a synthetic case study using templates for configuration.
/// This implementation defers some configuration-dependent computations
/// until runtime. Therefore, all features can be annotated.
@@ -267,6 +269,7 @@ struct compress_t {
@@ -266,6 +268,8 @@ struct compress_t {

size_t blocksize = offsets.blocksize;

+ fp_util::busy_sleep_for_millisecs(1);
+
while (i != e) {
+ fp_util::busy_sleep_for_millisecs(10);

unsigned char c = *i;

11 changes: 11 additions & 0 deletions bzip2/regression_1.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
description: "Patch that adds a regression that only affects compression"
include_revisions:
revision_range:
start: 1ea1ac188ad4b9cb662e3f8314673c63df95a589
end: master
path: regression_1.patch
project_name: bzip2
shortname: regress_compression
tags:
- regression
- perf_prec
13 changes: 13 additions & 0 deletions bzip2/regression_1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/bzip2.c b/bzip2.c
index a3a916b..f70fdfb 100644
--- a/bzip2.c
+++ b/bzip2.c
@@ -1133,6 +1133,8 @@ void compress ( Char *name )
if (name == NULL && srcMode != SM_I2O)
panic ( "compress: bad modes\n" );

+ sleep(1);
+
switch (srcMode) {
case SM_I2O:
copyFileName ( inName, (Char*)"(stdin)" );

0 comments on commit cf89576

Please sign in to comment.