@@ -238,7 +238,7 @@ KernelImp::~KernelImp() {
238238 alignedFree (perThreadDataForWholeThreadGroup);
239239 }
240240 if (printfBuffer != nullptr ) {
241- // not allowed to call virtual function on destructor, so calling printOutput directly
241+ // not allowed to call virtual function on destructor, so calling printOutput directly
242242 PrintfHandler::printOutput (kernelImmData, this ->printfBuffer , module ->getDevice ());
243243 module ->getDevice ()->getNEODevice ()->getMemoryManager ()->freeGraphicsMemory (printfBuffer);
244244 }
@@ -901,8 +901,7 @@ ze_result_t KernelImp::initialize(const ze_kernel_desc_t *desc) {
901901
902902 kernelHasIndirectAccess = kernelDescriptor.kernelAttributes .hasNonKernelArgLoad ||
903903 kernelDescriptor.kernelAttributes .hasNonKernelArgStore ||
904- kernelDescriptor.kernelAttributes .hasNonKernelArgAtomic ||
905- getImmutableData ()->getKernelInfo ()->hasIndirectStatelessAccess ;
904+ kernelDescriptor.kernelAttributes .hasNonKernelArgAtomic ;
906905
907906 if (this ->usesRayTracing ()) {
908907 if (this ->getImmutableData ()->getDescriptor ().payloadMappings .implicitArgs .rtDispatchGlobals .pointerSize > 0 ) {
@@ -1029,9 +1028,9 @@ Kernel *Kernel::create(uint32_t productFamily, Module *module,
10291028}
10301029
10311030bool KernelImp::hasIndirectAllocationsAllowed () const {
1032- return this -> kernelHasIndirectAccess && (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
1033- unifiedMemoryControls.indirectHostAllocationsAllowed ||
1034- unifiedMemoryControls.indirectSharedAllocationsAllowed );
1031+ return (unifiedMemoryControls.indirectDeviceAllocationsAllowed ||
1032+ unifiedMemoryControls.indirectHostAllocationsAllowed ||
1033+ unifiedMemoryControls.indirectSharedAllocationsAllowed );
10351034}
10361035
10371036uint32_t KernelImp::getSlmTotalSize () const {
0 commit comments