File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+ // SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22//
33// SPDX-License-Identifier: BSD-3-Clause
44
@@ -20,7 +20,7 @@ namespace hip {
2020void reset_device (int device_id)
2121{
2222 gko::detail::hip_scoped_device_id_guard guard{device_id};
23- hipDeviceReset ();
23+ ( void ) hipDeviceReset ();
2424}
2525
2626
Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+ // SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22//
33// SPDX-License-Identifier: BSD-3-Clause
44
@@ -30,7 +30,7 @@ namespace gko {
3030 const auto error_code = _operation; \
3131 if (error_code != hipSuccess) { \
3232 int device_id{-1 }; \
33- hipGetDevice (&device_id); \
33+ ( void ) hipGetDevice (&device_id); \
3434 std::cerr << " Unrecoverable HIP error on device " << device_id \
3535 << " in " << __func__ << " : " \
3636 << hipGetErrorName (error_code) << " : " \
Original file line number Diff line number Diff line change 1- // SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+ // SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22//
33// SPDX-License-Identifier: BSD-3-Clause
44
@@ -29,7 +29,7 @@ hip_stream::~hip_stream()
2929{
3030 if (stream_) {
3131 detail::hip_scoped_device_id_guard g (device_id_);
32- hipStreamDestroy (stream_);
32+ ( void ) hipStreamDestroy (stream_);
3333 }
3434}
3535
You can’t perform that action at this time.
0 commit comments