Skip to content

Commit

Permalink
test commit : fixing extra benchmark time
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-sachdeva committed Sep 10, 2024
1 parent 2ff3cd7 commit 89e1894
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/FlowAware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,10 @@ void IR2Vec_FA::generateFlowAwareEncodings(std::ostream *o,
std::ostream *cyclicCount) {

int noOfFunc = 0;
#pragma omp parallel for
for (auto &f : M) {
if (!f.isDeclaration()) {
auto tmp = func2Vec(f);

#pragma omp critical
{ funcVecMap[&f] = tmp; }
funcVecMap[&f] = tmp;
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/include/VectorSolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ matrix solve(matrix &A, matrix &B) {
}

matrix augmented(m, std::vector<double>(m + n));
#pragma omp parallel for
for (int i = 0; i < m; ++i) {
for (int j = 0; j < m; ++j) {
augmented[i][j] = A[i][j];
Expand All @@ -88,7 +87,6 @@ matrix solve(matrix &A, matrix &B) {
}
gaussJordan(augmented, B[0].size(), B);
matrix X(m, std::vector<double>(n));
#pragma omp parallel for
for (int i = 0; i < m; ++i) {
for (int j = 0; j < n; ++j) {
X[i][j] = B[i][j];
Expand Down

0 comments on commit 89e1894

Please sign in to comment.