@@ -66,7 +66,6 @@ struct KernelPropertiesTy {
6666 ze_kernel_indirect_access_flags_t IndirectAccessFlags = UINT32_MAX;
6767 uint32_t GroupSizes[3 ] = {0 , 0 , 0 };
6868 ze_group_count_t GroupCounts{0 , 0 , 0 };
69- bool AllowCooperative = false ;
7069
7170 std::mutex Mtx;
7271
@@ -96,8 +95,7 @@ class L0KernelTy : public GenericKernelTy {
9695 // L0 Kernel Handle
9796 ze_kernel_handle_t zeKernel;
9897 // Kernel Properties
99- KernelPropertiesTy Properties;
100- KernelPropertiesTy &getProperties () { return Properties; }
98+ mutable KernelPropertiesTy Properties;
10199
102100 void decideKernelGroupArguments (L0DeviceTy &Device, uint32_t NumTeams,
103101 uint32_t ThreadLimit, uint32_t *GroupSizes,
@@ -119,7 +117,7 @@ class L0KernelTy : public GenericKernelTy {
119117 L0KernelTy &operator =(const L0KernelTy &) = delete ;
120118 L0KernelTy &operator =(const L0KernelTy &&) = delete ;
121119
122- const KernelPropertiesTy &getProperties () const { return Properties; }
120+ KernelPropertiesTy &getProperties () const { return Properties; }
123121
124122 // / Initialize the L0 kernel.
125123 Error initImpl (GenericDeviceTy &GenericDevice, DeviceImageTy &Image) override ;
0 commit comments