Change memset kernel to use memcpy instead of placement new. Simplify indexers.
이 커밋은 다음에 포함됨:
1 부모
02c2bfc7ef
커밋
6e4ca3fbb4
2 파일이 변경됨
+7
-13
검색과 일치하는 파일 없음
@@ -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{};
|
||||
|
||||
새 이슈에서 참조
사용자 차단