mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
[SYCL-2020] Enabling USM support for SYCL. SYCL-1.2.1 did not have support for USM.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
1698c367a0
commit
0623791930
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user