Skip to content

Commit 054af6b

Browse files
authored
[src,cudadecoder] Fix __restrict__ pointer error (#4673)
1 parent 2b016ab commit 054af6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cudafeat/feature-online-cmvn-cuda.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ __global__ void apply_cmvn_kernel(
8787

8888
for (int c = threadIdx.x; c < num_cols; c += blockDim.x) {
8989
float2 frame_stats =
90-
reinterpret_cast<const float2 __restrict__*>(&stats[r * lds])[c];
90+
reinterpret_cast<const float2 *__restrict__>(&stats[r * lds])[c];
9191

9292
float val = feat_in[r * ldi + c];
9393

@@ -100,7 +100,7 @@ __global__ void apply_cmvn_kernel(
100100

101101
// stats at the start row of the window that must be removed
102102
float2 ostats =
103-
reinterpret_cast<const float2 __restrict__*>(&stats[o * lds])[c];
103+
reinterpret_cast<const float2 *__restrict__>(&stats[o * lds])[c];
104104

105105
// remove start of the window stats
106106
frame_stats = frame_stats - ostats;

0 commit comments

Comments
 (0)