Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds new regression patches and SynthIP configs #13

Merged
merged 11 commits into from
Oct 10, 2023
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)" );
Loading