diff options
Diffstat (limited to 'libs/rocm-rocr-runtime/fix-hsa-signal-less.awk')
| -rw-r--r-- | libs/rocm-rocr-runtime/fix-hsa-signal-less.awk | 10 |
1 files changed, 10 insertions, 0 deletions
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 } |
