Skip to content

Commit

Permalink
fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjj11 committed Jul 4, 2024
1 parent 50bc68c commit 1da9a41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clang/runtime/dpct-rt/include/dpct/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ T __spirv_GroupNonUniformShuffleUp(__spv::Scope::Flag, T, unsigned) noexcept;
#endif

namespace dpct {
/// dim3 is a class used to store 3 component dimensions.
class dim3 {
public:
unsigned x, y, z;

constexpr dim3(size_t x = 1, size_t y = 1, size_t z = 1) : x(x), y(y), z(z) {}
constexpr dim3(unsigned x = 1, unsigned y = 1, unsigned z = 1)
: x(x), y(y), z(z) {}

dim3(const sycl::id<3> &r) : dim3(r[2], r[1], r[0]) {}

Expand Down

0 comments on commit 1da9a41

Please sign in to comment.