Commit ea152b57 authored by Chenggang Zhao's avatar Chenggang Zhao
Browse files

Minor fix

parent c874cb7a
...@@ -295,7 +295,6 @@ __device__ __forceinline__ float exp2f_approx(const float &x) { ...@@ -295,7 +295,6 @@ __device__ __forceinline__ float exp2f_approx(const float &x) {
#ifndef DISABLE_SM90_FEATURES #ifndef DISABLE_SM90_FEATURES
__device__ __forceinline__ uint32_t elect_one_sync(int lane_id) { __device__ __forceinline__ uint32_t elect_one_sync(int lane_id) {
#ifndef DISABLE_SM90_FEATURES
uint32_t pred = 0; uint32_t pred = 0;
asm volatile( asm volatile(
"{\n" "{\n"
...@@ -308,9 +307,6 @@ __device__ __forceinline__ uint32_t elect_one_sync(int lane_id) { ...@@ -308,9 +307,6 @@ __device__ __forceinline__ uint32_t elect_one_sync(int lane_id) {
: "+r"(lane_id), "+r"(pred) : "+r"(lane_id), "+r"(pred)
: "r"(0xffffffff)); : "r"(0xffffffff));
return pred; return pred;
#else
return lane_id == 0;
#endif
} }
__device__ __forceinline__ void fence_view_async_shared() { __device__ __forceinline__ void fence_view_async_shared() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment