Merge pull request #6616 from NatashaKnk:main-to-google PiperOrigin-RevId: 388278366
diff --git a/iree/hal/cuda/stream_command_buffer.c b/iree/hal/cuda/stream_command_buffer.c index 9ab153d..0927320 100644 --- a/iree/hal/cuda/stream_command_buffer.c +++ b/iree/hal/cuda/stream_command_buffer.c
@@ -216,10 +216,10 @@ CUdeviceptr target_device_buffer = iree_hal_cuda_buffer_device_pointer( iree_hal_buffer_allocated_buffer(target_buffer)); - target_offset += iree_hal_buffer_byte_offset(target_buffer); + /* target_offset += */ iree_hal_buffer_byte_offset(target_buffer); CUdeviceptr source_device_buffer = iree_hal_cuda_buffer_device_pointer( iree_hal_buffer_allocated_buffer(source_buffer)); - source_offset += iree_hal_buffer_byte_offset(source_buffer); + /* source_offset += */ iree_hal_buffer_byte_offset(source_buffer); CUDA_RETURN_IF_ERROR(command_buffer->context->syms, cuMemcpyAsync(target_device_buffer, source_device_buffer, length, command_buffer->stream),
diff --git a/scripts/git/check_submodule_init.py b/scripts/git/check_submodule_init.py index 0523c9d..219545c 100644 --- a/scripts/git/check_submodule_init.py +++ b/scripts/git/check_submodule_init.py
@@ -1,33 +1,33 @@ -# Copyright 2021 The IREE Authors -# -# Licensed under the Apache License v2.0 with LLVM Exceptions. -# See https://llvm.org/LICENSE.txt for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -import os -import subprocess -import sys - - -def run(): - # No-op if we're not in a git repository. - try: - subprocess.check_call(['git', 'rev-parse', '--is-inside-work-tree'], - stdout=subprocess.DEVNULL, - stderr=subprocess.DEVNULL) - except: - return - - output = os.popen("git submodule status") - submodules = output.readlines() - - for submodule in submodules: - if (submodule.strip()[0] == "-"): - print( - "The git submodule '%s' is not initialized. Please run `git submodule update --init`" - % (submodule.split()[1])) - sys.exit(1) - - -if __name__ == "__main__": - run() +# Copyright 2021 The IREE Authors +# +# Licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +import os +import subprocess +import sys + + +def run(): + # No-op if we're not in a git repository. + try: + subprocess.check_call(['git', 'rev-parse', '--is-inside-work-tree'], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL) + except: + return + + output = os.popen("git submodule status") + submodules = output.readlines() + + for submodule in submodules: + if (submodule.strip()[0] == "-"): + print( + "The git submodule '%s' is not initialized. Please run `git submodule update --init`" + % (submodule.split()[1])) + sys.exit(1) + + +if __name__ == "__main__": + run()