From 510194830153ab8cd2c8706ff95389d5176aa58e Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Thu, 15 Aug 2024 13:57:09 +0200 Subject: [PATCH] update formatting for rocm 6.2 --- Common/example_utils.hpp | 2 +- Libraries/hipFFT/plan_z2z/main.cpp | 4 +--- Libraries/rocRAND/simple_distributions_cpp/main.cpp | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Common/example_utils.hpp b/Common/example_utils.hpp index a6f1cf75f..27adb4c58 100644 --- a/Common/example_utils.hpp +++ b/Common/example_utils.hpp @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal diff --git a/Libraries/hipFFT/plan_z2z/main.cpp b/Libraries/hipFFT/plan_z2z/main.cpp index e21e079a4..081ebd45e 100644 --- a/Libraries/hipFFT/plan_z2z/main.cpp +++ b/Libraries/hipFFT/plan_z2z/main.cpp @@ -56,9 +56,7 @@ void fft_example(const int dimension, const int size = 4, const int direction = std::uniform_real_distribution distribution{}; std::generate(input.begin(), input.end(), - [&]() { - return input_t{distribution(generator), distribution(generator)}; - }); + [&]() { return input_t{distribution(generator), distribution(generator)}; }); std::cout << "Input:\n" << std::setprecision(3); print_nd_data(input, n, 16); diff --git a/Libraries/rocRAND/simple_distributions_cpp/main.cpp b/Libraries/rocRAND/simple_distributions_cpp/main.cpp index dfdf32166..d68346f84 100644 --- a/Libraries/rocRAND/simple_distributions_cpp/main.cpp +++ b/Libraries/rocRAND/simple_distributions_cpp/main.cpp @@ -1,6 +1,6 @@ // MIT License // -// Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -253,8 +253,7 @@ int main(const int argc, const char** argv) if(number_of_devies <= 0) { - std::cerr << "HIP supported devices not found!" - << "\n"; + std::cerr << "HIP supported devices not found!\n"; exit(error_exit_code); }