Add missing constructors for Scalar_accessor class. (#1792)

[ROCm/hip commit: fae85cf6d2]
This commit is contained in:
kpyzhov
2020-01-14 14:30:21 -05:00
committato da Rahul Garg
parent db1be14e1c
commit 4c457c2bb5
@@ -105,6 +105,14 @@ THE SOFTWARE.
// Idea from https://t0rakka.silvrback.com/simd-scalar-accessor
Vector data;
__host__ __device__
Scalar_accessor() = default;
__host__ __device__
Scalar_accessor(T x) {
data[idx] = x;
}
__host__ __device__
operator T() const noexcept { return data[idx]; }
__host__ __device__