The texsurf_handle is removed by NVPTXReplaceImageHandles.cpp. There are more than one uses of the texsurf_handle, one of them is a regular function call, and one of them is a texture intrinsic. The current hacky logic in NVPTXReplaceImageHandles.cpp for CUDA cannot handle such a mixed use. This patch fixes this issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
llvm/lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp | ||
---|---|---|
9 | NVIDIA has stopped supporting Fermi(AKA sm_20) few years ago: https://nvidia.custhelp.com/app/answers/detail/a_id/4654/~/support-plan-for-fermi-series-geforce-gpus We should probably start thinking of removing sm_20 support from LLVM, too. |
NVIDIA has stopped supporting Fermi(AKA sm_20) few years ago: https://nvidia.custhelp.com/app/answers/detail/a_id/4654/~/support-plan-for-fermi-series-geforce-gpus
We should probably start thinking of removing sm_20 support from LLVM, too.