Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 87a8991

Browse files
authored
[SYCL][XPTI] Fix test (#659)
1 parent 50d1c28 commit 87a8991

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

SYCL/XPTI/basic_event_collection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: xptifw, opencl, TEMPORARILY_DISABLED
1+
// REQUIRES: xptifw, opencl
22
// RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll
33
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
44
// 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() {
3636

3737
#endif
3838

39+
// CHECK: xptiTraceInit: Stream Name = sycl.experimental.mem_alloc
3940
// CHECK: xptiTraceInit: Stream Name = sycl
4041
// CHECK-NEXT: Graph create
4142
// CHECK-NEXT: xptiTraceInit: Stream Name = sycl.pi

SYCL/lit.cfg.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,12 @@
342342
config.available_features.add('xptifw')
343343
config.substitutions.append(('%xptifw_dispatcher', xptifw_dispatcher))
344344
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)))
346346
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)))
348351

349352

350353
llvm_tools = ["llvm-spirv", "llvm-link"]

0 commit comments

Comments
 (0)