File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -770,13 +770,17 @@ def open_check_file(file_name):
770770if "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
810814for 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
814820try :
You can’t perform that action at this time.
0 commit comments