Skip to content

Commit

Permalink
Possibly fix Windows warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pciolkosz committed Jul 9, 2024
1 parent bdace0d commit 749a9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cudax/include/cuda/experimental/__launch/confiuration.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private:
int size_needed = static_cast<int>(size * sizeof(Content));
cudaError_t status = cudaFuncGetAttributes(&attrs, kernel);

if (NonPortableSize && size_needed > attrs.maxDynamicSharedSizeBytes)
if ((size_needed > attrs.maxDynamicSharedSizeBytes) && NonPortableSize)
{
// TODO since 12.6 there is a per launch option available, we should switch once compatibility is not an issue
// TODO should we validate the max amount with device props or just pass it through and rely on driver error?
Expand Down

0 comments on commit 749a9de

Please sign in to comment.