Constrain variadic constructor to ranks > 1 and add missing __device__s

[ROCm/hip commit: 96aa6e22ee]
这个提交包含在:
Alex Voicu 于 2018-07-17 17:18:45 +01:00 提交
1 父节点 918ed2305e
当前提交 91cc897d80
2 个文件已更改
+4 -1

没有与搜索条件相匹配的文件

@@ -40,6 +40,7 @@ using namespace std;
template<
typename V,
Enable_if_t<!is_integral<decltype(declval<V>().x)>{}>* = nullptr>
__device__
constexpr
bool integer_unary_tests(const V&, const V&) {
return true;
@@ -73,6 +74,7 @@ bool integer_unary_tests(V& f1, V& f2) {
template<
typename V,
Enable_if_t<!is_integral<decltype(declval<V>().x)>{}>* = nullptr>
__device__
constexpr
bool integer_binary_tests(const V&, const V&, const V&) {
return true;