[ROCm] Fix test_cuda_synchronize failure on ROCm (#164735)

This PR skips the hipify step of torch/csrc/jit/ir/ir.h to avoid a build-time error for the JIT cuda namespace.  This fixes two skipped tests in test/jit/test_cuda.py.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164735
Approved by: https://github.com/jeffdaily

Co-authored-by: Jeff Daily <jeff.daily@amd.com>
This commit is contained in:
rraminen
2025-10-07 01:14:20 +00:00
committed by PyTorch MergeBot
parent afee8062d5
commit 49f7d8d19d
4 changed files with 1 additions and 7 deletions

View File

@ -137,6 +137,7 @@ ignores = [
"third_party/nvfuser/runtime/helpers.cu",
"torch/csrc/jit/codegen/fuser/cuda/resource_strings.h",
"torch/csrc/jit/tensorexpr/ir_printer.cpp",
"torch/csrc/jit/ir/ir.h",
# generated files we shouldn't frob
"torch/lib/tmp_install/*",
"torch/include/*",