Skip to content

Commit 919884b

Browse files
author
mmoadeli
committed
- Fix adding gpu-amd-gfx90a as available feature.
- Update comment with `GFX90A` info.
1 parent f6b2cb3 commit 919884b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sycl/include/sycl/detail/defines.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
#define __SYCL_TYPE(x)
4040
#endif
4141

42-
// joint matrix should only be included by default for SPIR or NVPTX backends
42+
// joint matrix should only be included by default for SPIR, NVPTX or HIP(GFX90A
43+
// only) backends
4344
#if defined __SPIR__ || defined __NVPTX__ || !defined __SYCL_DEVICE_ONLY__ || \
4445
defined __gfx90a__
4546
#ifndef SYCL_EXT_ONEAPI_MATRIX_VERSION

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@
253253
devices = set()
254254
sp = subprocess.check_output(sycl_ls, text=True)
255255
for line in sp.splitlines():
256+
if "gfx90a" in line:
257+
config.available_features.add("gpu-amd-gfx90a")
256258
(backend, device, _) = line[1:].split(':', 2)
257259
devices.add('{}:{}'.format(backend, device))
258260
config.sycl_devices = list(devices)
@@ -281,8 +283,6 @@
281283
if "ext_oneapi_hip:gpu" in config.sycl_devices and config.hip_platform == "AMD":
282284
config.available_features.add('hip_amd')
283285
arch_flag = '-Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=' + config.amd_arch
284-
if "gfx90a" in config.sycl_devices:
285-
config.available_features.add("gpu-amd-gfx90a")
286286
elif "ext_oneapi_hip:gpu" in config.sycl_devices and config.hip_platform == "NVIDIA":
287287
config.available_features.add('hip_nvidia')
288288
arch_flag = ""

0 commit comments

Comments
 (0)