Skip to content

Commit

Permalink
[cleanup] Design-Device.md
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Feb 23, 2024
1 parent 67b0fb3 commit b741e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/dox/contrib/Design-Device.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Additional memory-related concerns common to both models:
How should we map the following host task onto the device?
```cpp
make_tt([](auto& key, auto& data1, auto& data2) -> void {
double data3 = blap::dot(data1.data(), data2.data());
double data3 = blas::dot(data1.data(), data2.data());
if (data3 >= 0.)
send<0>(data1);
else
Expand All @@ -86,7 +86,7 @@ make_tt([](auto& key, auto& data1, auto& data2) -> void {
Ideally the task will receive `data1` and `data2` already transferred to the memory space(s) accessible from the device execution space:
```cpp
make_device_tt([](auto& key, auto& data1, auto& data2) -> void {
double data3 = blap::device_dot(data1.data(), data2.data());
double data3 = blas::device_dot(data1.data(), data2.data());
if (data3 >= 0.)
send<0>(data1);
else
Expand Down

0 comments on commit b741e78

Please sign in to comment.