Skip to content

Conversation

@Jamaika1
Copy link

@Jamaika1 Jamaika1 commented Jan 6, 2026

mean.cu:36:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   36 |              ((ctx.cuda_graph->instance == nullptr) && (iscapturing == cudaStreamCaptureStatusNone) ||
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mean.cu:41:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   41 |          !((ctx.cuda_graph->instance == nullptr) && (iscapturing == cudaStreamCaptureStatusNone) ||
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mean.cu:32:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   32 |     if ((nrows == 1) &&
      |         ~~~~~~~~~~~~~^~
   33 | #ifdef USE_CUDA_GRAPH
      | ~~~~~~~~~~~~~~~~~~~~~
   34 |             // CUDA_GRAPHS_DISABLED
      |             ~~~~~~~~~~~~~~~~~~~~~~~
   35 |             ((ncols > 65536) &&
      |             ~~~~~~~~~~~~~~~~~~~
   36 |              ((ctx.cuda_graph->instance == nullptr) && (iscapturing == cudaStreamCaptureStatusNone) ||
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |               ctx.cuda_graph->disable_due_to_gpu_arch || ctx.cuda_graph->disable_due_to_too_many_updates ||
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |               ctx.cuda_graph->disable_due_to_failed_graph_capture)) ||
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```
mean.cu:36:53: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   36 |              ((ctx.cuda_graph->instance == nullptr) && (iscapturing == cudaStreamCaptureStatusNone) ||
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mean.cu:41:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   41 |          !((ctx.cuda_graph->instance == nullptr) && (iscapturing == cudaStreamCaptureStatusNone) ||
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mean.cu:32:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   32 |     if ((nrows == 1) &&
      |         ~~~~~~~~~~~~~^~
   33 | #ifdef USE_CUDA_GRAPH
      | ~~~~~~~~~~~~~~~~~~~~~
   34 |             // CUDA_GRAPHS_DISABLED
      |             ~~~~~~~~~~~~~~~~~~~~~~~
   35 |             ((ncols > 65536) &&
      |             ~~~~~~~~~~~~~~~~~~~
   36 |              ((ctx.cuda_graph->instance == nullptr) && (iscapturing == cudaStreamCaptureStatusNone) ||
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |               ctx.cuda_graph->disable_due_to_gpu_arch || ctx.cuda_graph->disable_due_to_too_many_updates ||
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   38 |               ctx.cuda_graph->disable_due_to_failed_graph_capture)) ||
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant