Skip to content

Commit e337fa4

Browse files
authored
fix thrust mr validate alignment condition (#8124)
1 parent 7eca72c commit e337fa4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

thrust/thrust/mr/pool_options.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ struct pool_options
9999
{
100100
return false;
101101
}
102-
if (::cuda::__is_valid_alignment(alignment))
102+
103+
// Forcing the alignment to be always valid would be a breaking change, because if the user didn't set the
104+
// alignment, this method would return false. So, we still accept 0.
105+
if (!::cuda::__is_valid_alignment(alignment) && alignment != 0)
103106
{
104107
return false;
105108
}

0 commit comments

Comments
 (0)