[all-commits] [llvm/llvm-project] 7d166f: [flang][cuda] Correct the number of blocks when se...
khaki3 via All-commits
all-commits at lists.llvm.org
Mon Dec 23 17:15:00 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7d166fa38470a23f3134a3793b9236b2a5c68fcf
https://github.com/llvm/llvm-project/commit/7d166fa38470a23f3134a3793b9236b2a5c68fcf
Author: khaki3 <47756807+khaki3 at users.noreply.github.com>
Date: 2024-12-23 (Mon, 23 Dec 2024)
Changed paths:
M flang/runtime/CUDA/kernel.cpp
Log Message:
-----------
[flang][cuda] Correct the number of blocks when setting the grid to `*` (#121000)
We set the `gridX` argument of `_FortranACUFLaunchKernel` to `-1` when
`*` is passed to the grid parameter. We store it in one of `dim3`
members. However, `dim3` members are unsigned, so positive-value checks
we use later, such as `gridDim.x > 0`, are invalid. This PR utilizes the
original gird-size arguments to compute the number of blocks.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list