inducer / inducer/grudge

Expensive-looking oddities in CUDA profile

Open
#146 2 comments 0 reactions 0 assignees View on GitHub
performance
Dominant language
Python
Stars
14
Forks
18
Avg merge
26m
Merged PRs (30d)
1

Description

Running [this benchmark](https://gist.github.com/inducer/f836e9913a5c4121857f50814e5662e3) based on `wave-op-mpi.py` on 1c44c4b with the command
```
PYTHONHASHSEED=17 PYOPENCL_TEST=port:nvid setarch -R numactl -C 2 -m 0 nvprof -f -o yoink.nvvp python -O wave-op-mpi.py --dim=3 --order=4
```
on `dunkel` gives me the following profile in Nvidia's visual profiler:
![grafik](https://user-images.githubusercontent.com/352067/124420391-03126e00-dd25-11eb-9cdf-e4ef36e44755.png)

There are at least two things wrong here (both circled):
- There are a bunch of big gaps where nothing seems to be happening. Why?
- Every now and then, a `cuLaunchKernel` seems to take a very long time. Why?

Curiously, there seem to be periods that don't suffer from this:
![grafik](https://user-images.githubusercontent.com/352067/124420612-656b6e80-dd25-11eb-9c0c-3937c8408dbf.png)

If we could fix these two types of stalls, I suspect our performance story would look quite a bit different.

cc @matthiasdiener @lukeolson

Other versions in use, for reproducibility:
- https://github.com/inducer/meshmode/commit/c7b78410fcf1d1f3e360d4a116ef190e450263dd
- https://github.com/inducer/arraycontext/commit/77b03e5e9eed69a9cfd51bebae68e0f746c5bacf
- https://github.com/inducer/loopy/commit/e232bb1361479f2e6fd3bd7efd7f4ecce270947f
- https://github.com/inducer/pyopencl/commit/a56281afc563e6be448cd8b2b2b69bc3afc59d78

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.