Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Third Party committed Aug 31, 2023
1 parent 72d14ea commit 81303c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/alpaka/babelstream/AlpakaStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,16 +305,16 @@ auto AlpakaStream<T>::dot() -> T

void listDevices()
{
auto const platform = alpaka::Platform<Acc>{};
auto const count = alpaka::getDevCount(platform);
const auto platform = alpaka::Platform<Acc>{};
const auto count = alpaka::getDevCount(platform);
std::cout << "Devices:" << std::endl;
for(int i = 0; i < count; i++)
std::cout << i << ": " << getDeviceName(i) << std::endl;
}

auto getDeviceName(int deviceIndex) -> std::string
{
auto const platform = alpaka::Platform<Acc>{};
const auto platform = alpaka::Platform<Acc>{};
return alpaka::getName(alpaka::getDevByIdx(platform, deviceIndex));
}

Expand Down

0 comments on commit 81303c2

Please sign in to comment.