Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Runtime][CUDA] Fix flag constant for cuEventCreate (#20040)
Refer to [CUDA documentation here](https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__EVENT.html#group__CUDA__EVENT_1g450687e75f3ff992fe01662a43d9d3db), it seems that `CU_EVENT_WAIT_DEFAULT` cannot be used as a flag in `cuEventCreate`. I think `CU_EVENT_WAIT_DEFAULT` is basically for some other CUDA APIs like `cuStreamWaitEvent` ([here](https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__STREAM.html#group__CUDA__STREAM_1g6a898b652dfc6aa1d5c8d97062618b2f)). It's interesting that currently these two constant is defined as the same value `0` in CUDA (so no functional change : ), but I believe it should be better if we can correct it.
- Loading branch information