Skip to content

Commit

Permalink
Modified detect patches (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Abelt <git@login.luabelt.de>
  • Loading branch information
LuAbelt and Lukas Abelt authored Dec 4, 2023
1 parent d762a6b commit 73e2109
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion HyTeg/cg_solve_detect.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ index 6d9ebb542..c1dbc2ddc 100644
+ __attribute__((feature_variable("__VARA__DETECT__"))) void detect() {
+ long counter = 0;
+ asm volatile("" : "+g"(counter) : :);
+ counter++;
+ std::cout << counter++ << std::endl;
+ }
+}
+
Expand Down
2 changes: 1 addition & 1 deletion HyTeg/gmres_solve_detect.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ index 6d9ebb542..c1dbc2ddc 100644
+ __attribute__((feature_variable("__VARA__DETECT__"))) void detect() {
+ long counter = 0;
+ asm volatile("" : "+g"(counter) : :);
+ counter++;
+ std::cout << counter++ << std::endl;
+ }
+}
+
Expand Down
2 changes: 1 addition & 1 deletion HyTeg/minres_solve_detect.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ index 6d9ebb542..c1dbc2ddc 100644
+ __attribute__((feature_variable("__VARA__DETECT__"))) void detect() {
+ long counter = 0;
+ asm volatile("" : "+g"(counter) : :);
+ counter++;
+ std::cout << counter++ << std::endl;
+ }
+}
+
Expand Down
2 changes: 1 addition & 1 deletion HyTeg/sor_solve_detect.patch
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ index 6d9ebb542..c1dbc2ddc 100644
+ __attribute__((feature_variable("__VARA__DETECT__"))) void detect() {
+ long counter = 0;
+ asm volatile("" : "+g"(counter) : :);
+ counter++;
+ std::cout << counter++ << std::endl;
+ }
+}
+
Expand Down
2 changes: 1 addition & 1 deletion HyTeg/symmetric_solve_detect.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ index 6d9ebb542..c1dbc2ddc 100644
+ __attribute__((feature_variable("__VARA__DETECT__"))) void detect() {
+ long counter = 0;
+ asm volatile("" : "+g"(counter) : :);
+ counter++;
+ std::cout << counter++ << std::endl;
+ }
+}
+
Expand Down

0 comments on commit 73e2109

Please sign in to comment.