Skip to content

Commit dd6ff8e

Browse files
committed
suppress clang warning
1 parent ae519a4 commit dd6ff8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ggml/src/ggml-cuda/ssm-scan.cu

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ using namespace cub;
99

1010
#include "ssm-scan.cuh"
1111

12+
// We would like to keep pragma unroll for cases where L_template is not 0,
13+
// so we suppress the clang transformation warning.
14+
#ifdef __clang__
15+
#pragma clang diagnostic push
16+
#pragma clang diagnostic ignored "-Wpass-failed"
17+
#endif // __clang__
1218
template <size_t splitD, size_t N, size_t L_template>
1319
__global__ void __launch_bounds__(splitD, 1)
1420
ssm_scan_f32(const float *__restrict__ src0, const float *__restrict__ src1, const float *__restrict__ src2,
@@ -103,6 +109,9 @@ __global__ void __launch_bounds__(splitD, 1)
103109
}
104110
#endif
105111
}
112+
#ifdef __clang__
113+
#pragma clang diagnostic pop
114+
#endif // __clang__
106115

107116
// assumes as many threads as d_state
108117
template <int splitH, int d_state>

0 commit comments

Comments
 (0)