Skip to content

Commit 75f90f9

Browse files
committed
clean up set extraction
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent b666f7b commit 75f90f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,8 @@ def open_check_file(file_name):
763763

764764
if be == "hip" and config.hip_platform == "AMD":
765765
if not config.amd_arch:
766-
arch = ""
767-
for a in architecture_feature:
768-
arch = a
766+
# Guaranteed to be a single element in the set
767+
arch = [x for x in architecture_feature][0]
769768
amd_arch_prefix = "arch-amd_gpu_"
770769
if amd_arch_prefix not in arch or len(architecture_feature) != 1:
771770
lit_config.error(

0 commit comments

Comments
 (0)