#include #include #include using namespace std; using namespace sycl; #define constsize 16 #define local_size 16 class abc{ public: queue Q{}; std::array e; std::arrayt; double *ua,*ub; abc(){ ua = malloc_shared(local_size, this->Q); ub = malloc_shared(local_size, this->Q); } void b(); }; void abc::b(){ for(int i=0;i ee{e}; buffer tt{t}; auto ini2 = this->Q.submit([&](handler &h) { accessor eee{ee, h, read_only}; accessor ttt{tt, h, read_only}; h.parallel_for(range{local_size,constsize,constsize}, [=,ptr=this](id<3> idx){ double eu=ptr->ua[idx[0]]; double x=ptr->ub[idx[0]]; int aa=eee[idx[1]]; double cc=ttt[idx[2]]; }); }); } int main(){ abc o; o.b(); return 0; }