commit | aa9b58354d3e7d3bb81bee35ba2eb0a436a55b28 | [log] [tgz] |
---|---|---|
author | Krzysztof Drewniak <Krzysztof.Drewniak@amd.com> | Wed Nov 17 23:56:35 2021 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Nov 18 08:30:51 2021 -0800 |
tree | 24c5746e28a2862ff53dcac991bd26ad3718b82d | |
parent | de40dfd1539f8d544bddeebbcfa78847707a0e57 [diff] |
[MLIR][GPU] Add target arguments to SerializeToHsaco Compiling code for AMD GPUs requires knowledge of which chipset is being targeted, especially if the code uses chipset-specific intrinsics (which is the case in a downstream convolution generator). This commit adds `target`, `chipset` and `features` arguments to the SerializeToHsaco constructor to enable passing in this required information. It also amends the ROCm integration tests to pass in the target chipset, which is set to the chipset of the first GPU on the system executing the tests. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D114107 GitOrigin-RevId: fb1a06aa13815c20fe2fdffc520d530e98dfae7a
See https://mlir.llvm.org/ for more information.