From c82e88dd00d1b0b7fcfb4e5628d99611388cef6f Mon Sep 17 00:00:00 2001 From: rawnix ports Date: Sat, 26 Sep 2026 18:19:05 +0000 Subject: sync 2026-09-26 18:19 UTC 1672 files changed, 151396 insertions(+) --- libs/rocm-rocr-runtime/fix-hsa-signal-less.awk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libs/rocm-rocr-runtime/fix-hsa-signal-less.awk (limited to 'libs/rocm-rocr-runtime/fix-hsa-signal-less.awk') diff --git a/libs/rocm-rocr-runtime/fix-hsa-signal-less.awk b/libs/rocm-rocr-runtime/fix-hsa-signal-less.awk new file mode 100644 index 0000000..674ed4b --- /dev/null +++ b/libs/rocm-rocr-runtime/fix-hsa-signal-less.awk @@ -0,0 +1,10 @@ +/uint64_t handle;$/ && found_signal { + print + print "#ifdef __cplusplus" + print " bool operator<(const hsa_signal_s& rhs) const { return handle < rhs.handle; }" + print "#endif" + found_signal = 0 + next +} +/typedef struct hsa_signal_s \{/ { found_signal = 1 } +{ print } -- cgit v1.3.1