Skip to content

Commit cee555b

Browse files
committed
debug CI failure
1 parent 1ce686a commit cee555b

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/adaptivecpp-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ concurrency:
1515

1616
env:
1717
CHANNELS: "-c conda-forge --override-channels"
18+
DPCTL_VERBOSITY: "error"
19+
PYTEST_ADDOPTS: "--capture=sys"
1820
# examples that AdaptiveCpp can build
1921
SYCL_EXAMPLES: "cython/sycl_buffer cython/use_dpctl_sycl pybind11/external_usm_allocation pybind11/use_dpctl_sycl_queue"
2022
C_EXAMPLES: "c/py_sycl_ls"
@@ -74,7 +76,7 @@ jobs:
7476
conda install -y ${{ env.CHANNELS }} \
7577
"python=${{ matrix.python_spec }}" \
7678
"adaptivecpp=*=cpu_llvm19*" "clang=19.*" "clangxx=19.*" \
77-
intel-opencl-rt tbb \
79+
intel-opencl-rt \
7880
cmake cython ninja numpy pybind11 pytest scikit-build "setuptools<80" versioneer
7981
8082
- name: Report the environment

libsyclinterface/helper/source/dpctl_error_handlers.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ void DPCTL_AsyncErrorHandler::operator()(const sycl::exception_list &exceptions)
4343
std::rethrow_exception(e);
4444
} catch (sycl::exception const &e) {
4545
error_handler(e, __FILE__, __func__, __LINE__);
46-
auto err_code = e.code().value();
47-
handler_(static_cast<int>(err_code));
46+
if (handler_) {
47+
auto err_code = e.code().value();
48+
handler_(static_cast<int>(err_code));
49+
}
4850
}
4951
}
5052
}

libsyclinterface/source/dpctl_sycl_queue_interface.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,12 @@ DPCTLQueue_Create(__dpctl_keep const DPCTLSyclContextRef CRef,
363363
}
364364
else {
365365
try {
366+
#ifdef __ADAPTIVECPP__
367+
auto Queue = new queue(*ctx, *dev, DPCTL_AsyncErrorHandler(nullptr),
368+
*propList);
369+
#else
366370
auto Queue = new queue(*ctx, *dev, *propList);
371+
#endif
367372
q = wrap<queue>(Queue);
368373
} catch (std::exception const &e) {
369374
error_handler(e, __FILE__, __func__, __LINE__);

0 commit comments

Comments
 (0)