From ea91132b0aadb189f8228ec9abbe5f5b94a81513 Mon Sep 17 00:00:00 2001 From: Jeff Daily Date: Tue, 3 Oct 2023 17:58:41 +0000 Subject: [PATCH] lint fixes --- onnxruntime/core/providers/rocm/rocm_allocator.cc | 4 ++-- tools/ci_build/amd_hipify.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/onnxruntime/core/providers/rocm/rocm_allocator.cc b/onnxruntime/core/providers/rocm/rocm_allocator.cc index b36c576dbf78f..8645b791d4b0f 100644 --- a/onnxruntime/core/providers/rocm/rocm_allocator.cc +++ b/onnxruntime/core/providers/rocm/rocm_allocator.cc @@ -51,8 +51,8 @@ void* ROCMAllocator::Alloc(size_t size) { void ROCMAllocator::Free(void* p) { SetDevice(false); - CheckDevice(false); // ignore ROCM failure when free - ORT_IGNORE_RETURN_VALUE(hipFree(p)); // do not throw error since it's OK for hipFree to fail during shutdown + CheckDevice(false); // ignore ROCM failure when free + ORT_IGNORE_RETURN_VALUE(hipFree(p)); // do not throw error since it's OK for hipFree to fail during shutdown } void* ROCMExternalAllocator::Alloc(size_t size) { diff --git a/tools/ci_build/amd_hipify.py b/tools/ci_build/amd_hipify.py index 73dc9f3817fd2..6f492317524be 100644 --- a/tools/ci_build/amd_hipify.py +++ b/tools/ci_build/amd_hipify.py @@ -172,8 +172,8 @@ def hipify(hipify_perl_path, src_file_path, dst_file_path): s = s.replace("#include ", "#include ") s = s.replace("#include ", "#include ") s = s.replace("#include ", "#include ") - s = s.replace('#include "hipfft.h"', '#include ') - s = s.replace('#include "hipfftXt.h"', '#include ') + s = s.replace('#include "hipfft.h"', "#include ") + s = s.replace('#include "hipfftXt.h"', "#include ") # Fix onnxruntime/contrib_ops/rocm/transformers. They include cpu headers which use "cuda" in their names. s = s.replace("rocm_device_prop_", "cuda_device_prop_")