Skip to content

Commit a57c665

Browse files
committed
comments and cleanup
1 parent e5af452 commit a57c665

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sycl/source/detail/kernel_bundle_impl.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,7 @@ class kernel_bundle_impl {
529529
std::string XsFlags = extractXsFlags(BuildOptions);
530530
auto Res = Adapter->call_nocheck<UrApiKind::urProgramBuildExp>(
531531
UrProgram, DeviceVec.size(), DeviceVec.data(), XsFlags.c_str());
532-
if (Res ==
533-
UR_RESULT_ERROR_UNSUPPORTED_FEATURE) { // (Res != UR_RESULT_SUCCESS) {
532+
if (Res == UR_RESULT_ERROR_UNSUPPORTED_FEATURE) {
534533
Res = Adapter->call_nocheck<UrApiKind::urProgramBuild>(
535534
ContextImpl->getHandleRef(), UrProgram, XsFlags.c_str());
536535
}

sycl/test-e2e/KernelCompiler/kernel_compiler_sycl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ void test_build_and_run(bool readingFromCache) {
182182
syclex::properties{syclex::build_options{flags}, syclex::save_log{&log},
183183
syclex::registered_kernel_names{"ff_templated<int>"}});
184184

185+
// If the kernel was restored from cache, there will not have been
186+
// any warning issued by the compilation of the kernel.
185187
if (!readingFromCache) {
186188
assert(log.find("warning: 'this_nd_item<1>' is deprecated") !=
187189
std::string::npos);

0 commit comments

Comments
 (0)