Skip to content

Commit 05b0b6f

Browse files
removed dummy loop to Field mul
1 parent 283bfd4 commit 05b0b6f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
master-benchmark:
9-
name: Benchmark
9+
name: Benchmark Master
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2

src/field/Field.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ class Field {
128128
auto rhs_data = rhs.data;
129129
#pragma acc parallel loop independent present(this->data[:m_size], rhs_data[:m_size]) async
130130
for (size_t i = 0; i < m_size; ++i) {
131-
this->data[i] *= rhs_data[i] * rhs_data[i];
132-
}
133-
for (size_t i = 0; i < m_size; ++i) {
134-
this->data[i] /= rhs_data[i];
131+
this->data[i] *= rhs_data[i];
135132
}
136133
#pragma acc wait
137134
return *this;

0 commit comments

Comments
 (0)