File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// REQUIRES: aspect-ext_oneapi_bindless_images
22// REQUIRES: windows
33
4- // DEFINE: %{link-flags}=%if cl_options %{ /clang:-ld3d12 /clang:-ldxgi /clang:-ldxguid %} %else %{ -ld3d12 -ldxgi -ldxguid %}
5- // RUN: %{build} %{link-flags} -o %t.out
4+ // RUN: %{build} %link-directx -o %t.out
65// RUN: %{run-unfiltered-devices} env NEOReadDebugKeys=1 UseBindlessMode=1 UseExternalAllocatorForSshAndDsh=1 %t.out
76
87#pragma clang diagnostic ignored "-Waddress-of-temporary"
Original file line number Diff line number Diff line change 44// XFAIL: run-mode
55// XFAIL-TRACKER: https://github.com/intel/llvm/issues/15851
66
7- // DEFINE: %{link-flags}=%if cl_options %{ /clang:-ld3d12 /clang:-ldxgi /clang:-ldxguid %} %else %{ -ld3d12 -ldxgi -ldxguid %}
8- // RUN: %{build} %{link-flags} -o %t.out
7+ // RUN: %{build} %link-directx -o %t.out
98// RUN: %{run-unfiltered-devices} %t.out
109
1110#define TEST_SEMAPHORE_IMPORT
Original file line number Diff line number Diff line change 1+ import platform
2+
13# Support of this feature is waiting for the upstream PR
24# https://github.com/llvm/llvm-project/pull/127737 to be merged with intel/llvm.
35config.unsupported_features += [' spirv-backend' ]
6+
7+ cl_options = ' cl_options' in config.available_features
8+
9+ link_vulkan = " -I %s " % (config.vulkan_include_dir)
10+ if platform.system() == " Windows" :
11+ if cl_options:
12+ link_vulkan += " /clang:-l%s" % (config.vulkan_lib)
13+ else:
14+ link_vulkan += " -l %s" % (config.vulkan_lib)
15+ else:
16+ vulkan_lib_path = os.path.dirname(config.vulkan_lib)
17+ link_vulkan += " -L %s -lvulkan" % (vulkan_lib_path)
18+ config.substitutions.append((" %link-vulkan" , link_vulkan))
19+
20+ if platform.system() == " Windows" :
21+ dx12libs = [' -ld3d12' , ' -ldxgi' , ' -ldxguid' ]
22+ if cl_options:
23+ dx12libs = [' /clang:' + l for l in dx12libs]
24+ config.substitutions.append((" %link-directx" , ' ' .join(dx12libs)))
25+
26+ if config.vulkan_found == " TRUE" :
27+ config.available_features.add(" vulkan" )
Original file line number Diff line number Diff line change @@ -605,23 +605,6 @@ def open_check_file(file_name):
605605else :
606606 config .substitutions .append (("%verbose_print" , "" ))
607607
608- config .substitutions .append (("%vulkan_include_dir" , config .vulkan_include_dir ))
609- config .substitutions .append (("%vulkan_lib" , config .vulkan_lib ))
610-
611- link_vulkan = "-I %s " % (config .vulkan_include_dir )
612- if platform .system () == "Windows" :
613- if cl_options :
614- link_vulkan += "/clang:-l%s" % (config .vulkan_lib )
615- else :
616- link_vulkan += "-l %s" % (config .vulkan_lib )
617- else :
618- vulkan_lib_path = os .path .dirname (config .vulkan_lib )
619- link_vulkan += "-L %s -lvulkan" % (vulkan_lib_path )
620- config .substitutions .append (("%link-vulkan" , link_vulkan ))
621-
622- if config .vulkan_found == "TRUE" :
623- config .available_features .add ("vulkan" )
624-
625608if not config .gpu_aot_target_opts :
626609 config .gpu_aot_target_opts = '"-device *"'
627610
You can’t perform that action at this time.
0 commit comments