We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7eca72c commit e337fa4Copy full SHA for e337fa4
thrust/thrust/mr/pool_options.h
@@ -99,7 +99,10 @@ struct pool_options
99
{
100
return false;
101
}
102
- if (::cuda::__is_valid_alignment(alignment))
+
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)
106
107
108
0 commit comments