From 4229c2af98d7d4889822e770c6ffbc64ff271d5f Mon Sep 17 00:00:00 2001 From: "Garcia Orozco, David" Date: Wed, 27 Nov 2024 08:50:42 -0800 Subject: [PATCH 1/2] Initialize arch_flag by default --- sycl/test-e2e/lit.cfg.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 2ef9ac91ce299..6bbe04ca7defa 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -45,7 +45,6 @@ case "build-only": config.test_mode = "build-only" config.sycl_devices = [] - arch_flag = "" case "full": config.test_mode = "full" config.available_features.add("run-mode") @@ -659,6 +658,7 @@ def open_check_file(file_name): # Version of the driver for a given device. Empty for non-Intel devices. config.intel_driver_ver = {} +arch_flag = "" for sycl_device in config.sycl_devices: env = copy.copy(llvm_config.config.environment) env["ONEAPI_DEVICE_SELECTOR"] = sycl_device @@ -798,9 +798,6 @@ def open_check_file(file_name): ) elif be == "hip" and config.hip_platform == "NVIDIA": config.available_features.add("hip_nvidia") - arch_flag = "" - else: - arch_flag = "" config.sycl_dev_features[sycl_device] = features.union(config.available_features) if is_intel_driver: From 7d3a72c33a7af487a95d8dd22e04f35727bd6a5b Mon Sep 17 00:00:00 2001 From: "Garcia Orozco, David" Date: Wed, 27 Nov 2024 09:06:47 -0800 Subject: [PATCH 2/2] Add comment for variable --- sycl/test-e2e/lit.cfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 6bbe04ca7defa..c0e4e66da5d8c 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -656,9 +656,10 @@ def open_check_file(file_name): # discovered already. config.sycl_dev_features = {} +# Architecture flag for compiling for AMD HIP devices. Empty otherwise. +arch_flag = "" # Version of the driver for a given device. Empty for non-Intel devices. config.intel_driver_ver = {} -arch_flag = "" for sycl_device in config.sycl_devices: env = copy.copy(llvm_config.config.environment) env["ONEAPI_DEVICE_SELECTOR"] = sycl_device