Skip to content

Commit 4229c2a

Browse files
committed
Initialize arch_flag by default
1 parent 34554e6 commit 4229c2a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
case "build-only":
4646
config.test_mode = "build-only"
4747
config.sycl_devices = []
48-
arch_flag = ""
4948
case "full":
5049
config.test_mode = "full"
5150
config.available_features.add("run-mode")
@@ -659,6 +658,7 @@ def open_check_file(file_name):
659658

660659
# Version of the driver for a given device. Empty for non-Intel devices.
661660
config.intel_driver_ver = {}
661+
arch_flag = ""
662662
for sycl_device in config.sycl_devices:
663663
env = copy.copy(llvm_config.config.environment)
664664
env["ONEAPI_DEVICE_SELECTOR"] = sycl_device
@@ -798,9 +798,6 @@ def open_check_file(file_name):
798798
)
799799
elif be == "hip" and config.hip_platform == "NVIDIA":
800800
config.available_features.add("hip_nvidia")
801-
arch_flag = ""
802-
else:
803-
arch_flag = ""
804801

805802
config.sycl_dev_features[sycl_device] = features.union(config.available_features)
806803
if is_intel_driver:

0 commit comments

Comments
 (0)