)]}' { "commit": "1f28dcdc1ea40ddba2ead18bdc1127bc5b0b46ef", "tree": "4f6fcd01a3136fce98a600726f13c88a5dcec06b", "parents": [ "f7e112935553dcd99b36b998ef69e676b254aacd" ], "author": { "name": "Yaxun (Sam) Liu", "email": "yaxun.liu@amd.com", "time": "Fri Apr 16 10:40:17 2021 -0400" }, "committer": { "name": "Copybara-Service", "email": "copybara-worker@google.com", "time": "Sat Apr 17 21:20:08 2021 -0700" }, "message": "[HIP] Support hipRTC in header\n\nhipRTC compiles HIP device code at run time. Since the system may not\nhave development tools installed, when a HIP program is compiled through\nhipRTC, there is no standard C or C++ header available. As such, the HIP\nheaders should not depend on standard C or C++ headers when used\nwith hipRTC. Basically when hipRTC is used, HIP headers only provides\ndefinitions of HIP device API functions. This is in line with what nvRTC does.\n\nThis patch adds support of hipRTC to HIP headers in clang. Basically hipRTC\ndefines a macro __HIPCC_RTC__ when compile HIP code at run time. When\nthis macro is defined, HIP headers do not include standard C/C++ headers.\n\nReviewed by: Artem Belevich\n\nDifferential Revision: https://reviews.llvm.org/D100652\n\nGitOrigin-RevId: 6823af0ca858b54e09e5be61a19d067ccd0bd6b7\n", "tree_diff": [ { "type": "modify", "old_id": "18871e63bfa0fe729a7081f1643289886a99d1a1", "old_mode": 33188, "old_path": "lib/Headers/__clang_hip_cmath.h", "new_id": "632d46e47f8b9cde348614399609c919162e8669", "new_mode": 33188, "new_path": "lib/Headers/__clang_hip_cmath.h" }, { "type": "modify", "old_id": "14d91c66b35221649ed892a3ab8f86b0bffe458f", "old_mode": 33188, "old_path": "lib/Headers/__clang_hip_math.h", "new_id": "35cf0ad3ba6c5c41cb75c2a053e3a3f4eea9d5c1", "new_mode": 33188, "new_path": "lib/Headers/__clang_hip_math.h" }, { "type": "modify", "old_id": "4fd8f23d49f3824dcd12f0c25970685fcf7ada22", "old_mode": 33188, "old_path": "lib/Headers/__clang_hip_runtime_wrapper.h", "new_id": "8ee5566b33cf861319cc5f0b652a36a8b85a3475", "new_mode": 33188, "new_path": "lib/Headers/__clang_hip_runtime_wrapper.h" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "943254b63f2ed1803f680a9292779b99a17b1157", "new_mode": 33188, "new_path": "test/Headers/hip-header.hip" }, { "type": "modify", "old_id": "21b674539a30cf19be7eb98ded27188430c92c2d", "old_mode": 33188, "old_path": "test/lit.cfg.py", "new_id": "63ba8160c66123f22cdb6bca2d6db9d29f8c080b", "new_mode": 33188, "new_path": "test/lit.cfg.py" } ] }