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 {
164164// Class which stores specific lambda object.
165165template <class KernelType , class KernelArgType , int Dims>
166166class HostKernel : public HostKernelBase {
167- using IDBuilder = sycl::detail::Builder;
168167 KernelType MKernel;
169- // Allowing accessing MKernel from 'ResetHostKernelHelper' method of
170- // 'sycl::handler'
171- friend class sycl ::handler;
172168
173169public:
174170 HostKernel (KernelType Kernel) : MKernel(Kernel) {}
@@ -182,6 +178,7 @@ class HostKernel : public HostKernelBase {
182178 // kernel code instructions with source code lines.
183179 // NOTE: InstatiateKernelOnHost() should not be called.
184180 void InstantiateKernelOnHost () override {
181+ using IDBuilder = sycl::detail::Builder;
185182 if constexpr (std::is_same_v<KernelArgType, void >) {
186183 runKernelWithoutArg (MKernel);
187184 } 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 {
753753#endif
754754 // Empty name indicates that the compilation happens without integration
755755 // header, so don't perform things that require it.
756- if (KernelHasName) {
756+ if constexpr (KernelHasName) {
757757 // TODO support ESIMD in no-integration-header case too.
758758 clearArgs ();
759759 extractArgsAndReqsFromLambda (MHostKernel->getPtr (),
@@ -770,7 +770,7 @@ class __SYCL_EXPORT handler {
770770
771771 // If the kernel lambda is callable with a kernel_handler argument, manifest
772772 // the associated kernel handler.
773- if (IsCallableWithKernelHandler) {
773+ if constexpr (IsCallableWithKernelHandler) {
774774 getOrInsertHandlerKernelBundle (/* Insert=*/ true );
775775 }
776776 }
You can’t perform that action at this time.
0 commit comments