Skip to content

Commit 92e5194

Browse files
authored
Changing access mode to write (#11)
* Changing access mode to write * Updating names of variable
1 parent da0df38 commit 92e5194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example-01/vector_addition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ int main(int argc, char *argv[]) {
7878
myQueue.submit(cg);
7979

8080
{
81-
const auto write_t = sycl::access::mode::read;
82-
auto h_c = bufC.get_access<write_t>();
81+
const auto read_t = sycl::access::mode::read;
82+
auto h_c = bufC.get_access<read_t>();
8383
double sum = 0.0f;
8484
for (int i = 0; i < N; i++) {
8585
sum += h_c[i];

0 commit comments

Comments
 (0)