Skip to content

Commit 8494ca5

Browse files
committed
format
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent a01f872 commit 8494ca5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,13 +770,17 @@ def open_check_file(file_name):
770770
if "hip:gpu" in config.sycl_devices and config.hip_platform == "AMD":
771771
if not config.amd_arch:
772772
amd_arch_prefix = "arch-amd_gpu_"
773-
amd_device_arch = [i for i in config.sycl_dev_features["hip:gpu"] if amd_arch_prefix in i]
773+
amd_device_arch = [
774+
i for i in config.sycl_dev_features["hip:gpu"] if amd_arch_prefix in i
775+
]
774776
if len(amd_device_arch) == 0:
775777
lit_config.error(
776778
"Cannot detect architecture for AMD HIP device, specify it explicitly"
777779
)
778780
if len(amd_device_arch) > 1:
779-
lit_config.warning("Multiple AMD HIP devices, using the architecture from the first one")
781+
lit_config.warning(
782+
"Multiple AMD HIP devices, using the architecture from the first one"
783+
)
780784
config.amd_arch = amd_device_arch[0].replace(amd_arch_prefix, "")
781785
llvm_config.with_system_environment("ROCM_PATH")
782786
config.available_features.add("hip_amd")
@@ -808,7 +812,9 @@ def open_check_file(file_name):
808812

809813
# Update each device's features with anything added during HIP device handling
810814
for sycl_device in config.sycl_devices:
811-
config.sycl_dev_features[sycl_device] = config.sycl_dev_features[sycl_device].union(config.available_features)
815+
config.sycl_dev_features[sycl_device] = config.sycl_dev_features[sycl_device].union(
816+
config.available_features
817+
)
812818

813819
# Set timeout for a single test
814820
try:

0 commit comments

Comments
 (0)