[SYCL-2020] Enabling USM support for SYCL. SYCL-1.2.1 did not have support for USM.

This commit is contained in:
Mehdi Goli
2023-05-05 17:30:36 +00:00
committed by Rasmus Munk Larsen
parent 1698c367a0
commit 0623791930
40 changed files with 164 additions and 1707 deletions

View File

@@ -2,17 +2,13 @@
// A Scalar with internal representation T+1 so that zero is internally
// represented by T(1). This is used to test memory fill.
//
#pragma once
template<typename T>
class OffByOneScalar {
public:
OffByOneScalar() : val_(1) {}
OffByOneScalar(const OffByOneScalar& other) {
*this = other;
}
OffByOneScalar& operator=(const OffByOneScalar& other) {
val_ = other.val_;
return *this;
}
OffByOneScalar(const OffByOneScalar& other) = default;
OffByOneScalar& operator=(const OffByOneScalar& other) = default;
OffByOneScalar(T val) : val_(val + 1) {}
OffByOneScalar& operator=(T val) {