File tree Expand file tree Collapse file tree 4 files changed +26
-21
lines changed Expand file tree Collapse file tree 4 files changed +26
-21
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: aspect-ext_oneapi_bindless_images
2
2
// REQUIRES: windows
3
3
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
6
5
// RUN: %{run-unfiltered-devices} env NEOReadDebugKeys=1 UseBindlessMode=1 UseExternalAllocatorForSshAndDsh=1 %t.out
7
6
8
7
#pragma clang diagnostic ignored "-Waddress-of-temporary"
Original file line number Diff line number Diff line change 4
4
// XFAIL: run-mode
5
5
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/15851
6
6
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
9
8
// RUN: %{run-unfiltered-devices} %t.out
10
9
11
10
#define TEST_SEMAPHORE_IMPORT
Original file line number Diff line number Diff line change
1
+ import platform
2
+
1
3
# Support of this feature is waiting for the upstream PR
2
4
# https://github.com/llvm/llvm-project/pull/127737 to be merged with intel/llvm.
3
5
config.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):
605
605
else :
606
606
config .substitutions .append (("%verbose_print" , "" ))
607
607
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
-
625
608
if not config .gpu_aot_target_opts :
626
609
config .gpu_aot_target_opts = '"-device *"'
627
610
You can’t perform that action at this time.
0 commit comments