[SYCL] Use global defined scalar value
This commit is contained in:
parent
b54d94b82d
commit
47128d47c0
@ -78,7 +78,7 @@ void SYCLStream<T>::copy()
|
|||||||
template <class T>
|
template <class T>
|
||||||
void SYCLStream<T>::mul()
|
void SYCLStream<T>::mul()
|
||||||
{
|
{
|
||||||
const T scalar = 0.3;
|
const T scalar = startScalar;
|
||||||
queue->submit([&](handler &cgh)
|
queue->submit([&](handler &cgh)
|
||||||
{
|
{
|
||||||
auto kb = d_b->template get_access<access::mode::write>(cgh);
|
auto kb = d_b->template get_access<access::mode::write>(cgh);
|
||||||
@ -110,7 +110,7 @@ void SYCLStream<T>::add()
|
|||||||
template <class T>
|
template <class T>
|
||||||
void SYCLStream<T>::triad()
|
void SYCLStream<T>::triad()
|
||||||
{
|
{
|
||||||
const T scalar = 0.3;
|
const T scalar = startScalar;
|
||||||
queue->submit([&](handler &cgh)
|
queue->submit([&](handler &cgh)
|
||||||
{
|
{
|
||||||
auto ka = d_a->template get_access<access::mode::write>(cgh);
|
auto ka = d_a->template get_access<access::mode::write>(cgh);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user