Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix, CUB regression in CUDA 12.2 #55594

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion paddle/fluid/inference/tensorrt/plugin/common/common.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ __device__ inline float rsqrt(const float& x) {
return rsqrtf(x);
}

__device__ inline kv_float operator+(const kv_float& a, const kv_float& b) {
namespace cub {
__host__ __device__ inline kv_float operator+(const kv_float& a, const kv_float& b) {
return kv_float(a.key + b.key, a.value + b.value);
}
}

// Half Operations
__device__ inline half2 __hadd2_with_fallback(const half2 a, const half2 b) {
Expand Down