@@ -850,13 +850,13 @@ __esimd_media_block_load(unsigned modififer, TACC handle, unsigned plane,
850
850
uint32_t bpp;
851
851
uint32_t imgWidth;
852
852
uint32_t imgHeight;
853
- std::mutex mutexLock;
853
+ std::mutex * mutexLock;
854
854
855
855
I->sycl_get_cm_image_params_ptr (static_cast <void *>(handle.get_pointer ()),
856
856
&readBase, &imgWidth, &imgHeight, &bpp,
857
857
&mutexLock);
858
858
859
- std::unique_lock<std::mutex> lock (mutexLock);
859
+ std::unique_lock<std::mutex> lock (* mutexLock);
860
860
861
861
int x_pos_a, y_pos_a, offset, index;
862
862
@@ -960,7 +960,7 @@ inline void __esimd_media_block_store(unsigned modififer, TACC handle,
960
960
uint32_t bpp;
961
961
uint32_t imgWidth;
962
962
uint32_t imgHeight;
963
- std::mutex mutexLock;
963
+ std::mutex * mutexLock;
964
964
965
965
I->sycl_get_cm_image_params_ptr (static_cast <void *>(handle.get_pointer ()),
966
966
&writeBase, &imgWidth, &imgHeight, &bpp,
@@ -974,7 +974,7 @@ inline void __esimd_media_block_store(unsigned modififer, TACC handle,
974
974
// TODO : Remove intermediate 'out' matrix
975
975
std::vector<std::vector<Ty>> out (M, std::vector<Ty>(N));
976
976
977
- std::unique_lock<std::mutex> lock (mutexLock);
977
+ std::unique_lock<std::mutex> lock (* mutexLock);
978
978
979
979
for (int i = 0 , k = 0 ; i < M; i++) {
980
980
for (int j = 0 ; j < N; j++) {
@@ -1342,12 +1342,12 @@ __esimd_block_read(SurfIndAliasTy surf_ind, uint32_t offset) {
1342
1342
1343
1343
char *readBase;
1344
1344
uint32_t width;
1345
- std::mutex mutexLock;
1345
+ std::mutex * mutexLock;
1346
1346
1347
1347
I->sycl_get_cm_buffer_params_ptr (static_cast <void *>(surf_ind.get_pointer ()),
1348
1348
&readBase, &width, &mutexLock);
1349
1349
1350
- std::unique_lock<std::mutex> lock (mutexLock);
1350
+ std::unique_lock<std::mutex> lock (* mutexLock);
1351
1351
1352
1352
for (int idx = 0 ; idx < N; idx++) {
1353
1353
if (offset >= width) {
@@ -1369,12 +1369,12 @@ inline void __esimd_block_write(SurfIndAliasTy surf_ind, uint32_t offset,
1369
1369
1370
1370
char *writeBase;
1371
1371
uint32_t width;
1372
- std::mutex mutexLock;
1372
+ std::mutex * mutexLock;
1373
1373
1374
1374
I->sycl_get_cm_buffer_params_ptr (static_cast <void *>(surf_ind.get_pointer ()),
1375
1375
&writeBase, &width, &mutexLock);
1376
1376
1377
- std::unique_lock<std::mutex> lock (mutexLock);
1377
+ std::unique_lock<std::mutex> lock (* mutexLock);
1378
1378
1379
1379
offset <<= 4 ;
1380
1380
0 commit comments