Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaily committed Oct 3, 2023
1 parent 2081b4b commit ea91132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/core/providers/rocm/rocm_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tools/ci_build/amd_hipify.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def hipify(hipify_perl_path, src_file_path, dst_file_path):
s = s.replace("#include <rocblas.h>", "#include <rocblas/rocblas.h>")
s = s.replace("#include <hipblas.h>", "#include <hipblas/hipblas.h>")
s = s.replace("#include <hipfft.h>", "#include <hipfft/hipfft.h>")
s = s.replace('#include "hipfft.h"', '#include <hipfft/hipfft.h>')
s = s.replace('#include "hipfftXt.h"', '#include <hipfft/hipfftXt.h>')
s = s.replace('#include "hipfft.h"', "#include <hipfft/hipfft.h>")
s = s.replace('#include "hipfftXt.h"', "#include <hipfft/hipfftXt.h>")

# 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_")
Expand Down

0 comments on commit ea91132

Please sign in to comment.