Constrain variadic constructor to ranks > 1 and add missing __device__s
此提交包含在:
@@ -120,7 +120,8 @@ THE SOFTWARE.
|
||||
}
|
||||
template< // TODO: constrain based on type as well.
|
||||
typename... Us,
|
||||
typename std::enable_if<sizeof...(Us) == rank>::type* = nullptr>
|
||||
typename std::enable_if<
|
||||
(rank > 1) && sizeof...(Us) == rank>::type* = nullptr>
|
||||
__host__ __device__
|
||||
HIP_vector_type(Us... xs) noexcept { data = Native_vec_{xs...}; }
|
||||
__host__ __device__
|
||||
|
||||
新增問題並參考
封鎖使用者