-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug] Fix struct field error on bool on cuda (#8134)
Issue: #8086 ### Brief Summary This pull request adds support for bool types in `TaskCodeGenCUDA::create_intrinsic_load` which solves bit width issue on CUDA runtime. The problem was that `nvvm_ldg_global_i` does not support 1 bit integer. So we cast pointers and values to `i8` to solve this issue. ### Walkthrough + Added value and pointer casting in `TaskCodeGenCUDA::create_intrinsic_load` + Added test case --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
f18af28
commit a54ac8a
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters