Change memset kernel to use memcpy instead of placement new. Simplify indexers.

这个提交包含在:
Alex Voicu 于 2017-11-28 19:45:47 +00:00 提交
1 父节点 02c2bfc7ef
当前提交 6e4ca3fbb4
2 个文件已更改
+7 -13

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

+3 -12
查看文件
@@ -389,18 +389,9 @@ template<typename std::common_type<
class Coordinates {
using R = decltype(f(0));
struct X {
__device__ operator R() const { return f(0); }
__host__ operator R() const { return R{}; }
};
struct Y {
__device__ operator R() const { return f(1); }
__host__ operator R() const { return R{}; }
};
struct Z {
__device__ operator R() const { return f(2); }
__host__ operator R() const { return R{}; }
};
struct X { __device__ operator R() const { return f(0); } };
struct Y { __device__ operator R() const { return f(1); } };
struct Z { __device__ operator R() const { return f(2); } };
public:
static constexpr X x{};
static constexpr Y y{};