You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL][HIP] Add HIP arch argument for lit tests (#4676)
When using the HIP backend for an AMD platform the gpu's architecture must be sepcified with `-Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=<target>`. This patch adds an option to `buildbot/configure.py` which allows the user to state the gpu architecture for lit tests when running `check-sycl-hip`.
Relevant messages and docs are updated within the patch.
This patch is needed even if the tests do not run on hardware, as the amd architecture must be specified for compilation.
parser.add_argument("--cuda", action='store_true', help="switch from OpenCL to CUDA")
189
193
parser.add_argument("--hip", action='store_true', help="switch from OpenCL to HIP")
190
194
parser.add_argument("--hip-platform", type=str, choices=['AMD', 'NVIDIA'], default='AMD', help="choose hardware platform for HIP backend")
195
+
parser.add_argument("--hip-amd-arch", type=str, help="Sets AMD gpu architecture for llvm lit tests, this is only needed for the HIP backend and AMD platform")
191
196
parser.add_argument("--arm", action='store_true', help="build ARM support rather than x86")
192
197
parser.add_argument("--enable-esimd-cpu-emulation", action='store_true', help="build with ESIMD_CPU emulation support")
193
198
parser.add_argument("--no-assertions", action='store_true', help="build without assertions")
0 commit comments