Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose GPU mode should report the grid size of the kernels #25980

Open
e-kayrakli opened this issue Sep 23, 2024 · 0 comments · May be fixed by #26153
Open

Verbose GPU mode should report the grid size of the kernels #25980

e-kayrakli opened this issue Sep 23, 2024 · 0 comments · May be fixed by #26153

Comments

@e-kayrakli
Copy link
Contributor

This was asked in Gitter before, but I can't find the context. Today, I wanted to confirm gpu.itersPerThread behavior in the following code:

on here.gpus[0] {
  foreach i in 1..1000 {
    // will run on 1000 GPU threads
  }

  @gpu.itersPerThread(10)
  foreach i in 1..1000 {
    // will run on 100 GPU threads
  }
}

using startVerboseGpu/stopVerboseGpu, I get

0 (gpu 0): $CHPL_HOME/itersPerThread.chpl:5: kernel launch (block size: 512x1x1)
0 (gpu 0): $CHPL_HOME/itersPerThread.chpl:10: kernel launch (block size: 512x1x1)

This is correct, but without grid size, we can't see how many threads were used for each kernel. --debugGpu is the only way to confirm that today, and --debugGpu is not supposed to be user-facing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant