From ee63721badd3e7da0dd4584a2bf146d7010d3f16 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Mon, 25 May 2020 08:36:24 -0700 Subject: [PATCH] int unhappiness sycl fix --- Grid/threads/Accelerator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Grid/threads/Accelerator.h b/Grid/threads/Accelerator.h index b5c828aa..1cb6d637 100644 --- a/Grid/threads/Accelerator.h +++ b/Grid/threads/Accelerator.h @@ -194,13 +194,13 @@ accelerator_inline int acceleratorSIMTlane(int Nsimd) { #define accelerator_for2dNB( iter1, num1, iter2, num2, nsimd, ... ) \ theGridAccelerator->submit([&](cl::sycl::handler &cgh) { \ - int nt=acceleratorThreads(); \ + unsigned long nt=acceleratorThreads(); \ unsigned long unum1 = num1; \ unsigned long unum2 = num2; \ cl::sycl::range<3> local {nt,1,nsimd}; \ - cl::sycl::range<3> global{unum1,unum2,nsimd}; \ + cl::sycl::range<3> global{unum1,unum2,nsimd}; \ cgh.parallel_for( \ - cl::sycl::nd_range<3>(global,local), \ + cl::sycl::nd_range<3>(global,local), \ [=] (cl::sycl::nd_item<3> item) mutable { \ auto iter1 = item.get_global_id(0); \ auto iter2 = item.get_global_id(1); \