Skip to content

Commit

Permalink
Fix setting threadIdxx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Jun 23, 2022
1 parent 04756cf commit 5a03e02
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Genten_TinyVec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
broadcast(x);
Expand All @@ -1654,7 +1654,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type* x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
load(x);
Expand Down Expand Up @@ -1890,7 +1890,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
broadcast(x);
Expand All @@ -1899,7 +1899,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type* x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
load(x);
Expand Down Expand Up @@ -2161,7 +2161,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
broadcast(x);
Expand All @@ -2170,7 +2170,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type* x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
load(x);
Expand Down Expand Up @@ -2458,7 +2458,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
broadcast(x);
Expand All @@ -2467,7 +2467,7 @@ namespace Genten {
inline
TinyVec(const policy_member_type& team, const ordinal_type size, const scalar_type* x) :
team_member(team),
threadIdxx(team_member.item().get_local_id(0)),
threadIdxx(team_member.item().get_local_id(1)),
sz( (size+Warp-1-threadIdxx) / Warp )
{
load(x);
Expand Down

0 comments on commit 5a03e02

Please sign in to comment.