File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -164,11 +164,7 @@ class HostKernelBase {
164
164
// Class which stores specific lambda object.
165
165
template <class KernelType , class KernelArgType , int Dims>
166
166
class HostKernel : public HostKernelBase {
167
- using IDBuilder = sycl::detail::Builder;
168
167
KernelType MKernel;
169
- // Allowing accessing MKernel from 'ResetHostKernelHelper' method of
170
- // 'sycl::handler'
171
- friend class sycl ::handler;
172
168
173
169
public:
174
170
HostKernel (KernelType Kernel) : MKernel(Kernel) {}
@@ -182,6 +178,7 @@ class HostKernel : public HostKernelBase {
182
178
// kernel code instructions with source code lines.
183
179
// NOTE: InstatiateKernelOnHost() should not be called.
184
180
void InstantiateKernelOnHost () override {
181
+ using IDBuilder = sycl::detail::Builder;
185
182
if constexpr (std::is_same_v<KernelArgType, void >) {
186
183
runKernelWithoutArg (MKernel);
187
184
} else if constexpr (std::is_same_v<KernelArgType, sycl::id<Dims>>) {
Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ class __SYCL_EXPORT handler {
753
753
#endif
754
754
// Empty name indicates that the compilation happens without integration
755
755
// header, so don't perform things that require it.
756
- if (KernelHasName) {
756
+ if constexpr (KernelHasName) {
757
757
// TODO support ESIMD in no-integration-header case too.
758
758
clearArgs ();
759
759
extractArgsAndReqsFromLambda (MHostKernel->getPtr (),
@@ -770,7 +770,7 @@ class __SYCL_EXPORT handler {
770
770
771
771
// If the kernel lambda is callable with a kernel_handler argument, manifest
772
772
// the associated kernel handler.
773
- if (IsCallableWithKernelHandler) {
773
+ if constexpr (IsCallableWithKernelHandler) {
774
774
getOrInsertHandlerKernelBundle (/* Insert=*/ true );
775
775
}
776
776
}
You can’t perform that action at this time.
0 commit comments