This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- // REQUIRES: xptifw, opencl, TEMPORARILY_DISABLED
1
+ // REQUIRES: xptifw, opencl
2
2
// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll
3
3
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
4
4
// RUN: env XPTI_TRACE_ENABLE=1 env XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher env XPTI_SUBSCRIBERS=%t_collector.dll env SYCL_DEVICE_FILTER=opencl %t.out | FileCheck %s 2>&1
@@ -36,6 +36,7 @@ int main() {
36
36
37
37
#endif
38
38
39
+ // CHECK: xptiTraceInit: Stream Name = sycl.experimental.mem_alloc
39
40
// CHECK: xptiTraceInit: Stream Name = sycl
40
41
// CHECK-NEXT: Graph create
41
42
// CHECK-NEXT: xptiTraceInit: Stream Name = sycl.pi
Original file line number Diff line number Diff line change 342
342
config .available_features .add ('xptifw' )
343
343
config .substitutions .append (('%xptifw_dispatcher' , xptifw_dispatcher ))
344
344
if platform .system () == "Linux" :
345
- config .substitutions .append (('%xptifw_lib' , " {}/xptifw.lib " .format (xptifw_lib_dir )))
345
+ config .substitutions .append (('%xptifw_lib' , " -L{} -lxptifw -I{} " .format (xptifw_lib_dir , xptifw_includes )))
346
346
elif platform .system () == "Windows" :
347
- config .substitutions .append (('%xptifw_lib' , "-L{} -I{} -lxptifw" .format (xptifw_lib_dir , xptifw_includes )))
347
+ if cl_options :
348
+ config .substitutions .append (('%xptifw_lib' , " {}/xptifw.lib /I{} " .format (xptifw_lib_dir , xptifw_includes )))
349
+ else :
350
+ config .substitutions .append (('%xptifw_lib' , " {}/xptifw.lib -I{} " .format (xptifw_lib_dir , xptifw_includes )))
348
351
349
352
350
353
llvm_tools = ["llvm-spirv" , "llvm-link" ]
You can’t perform that action at this time.
0 commit comments