Skip to content

Commit 07b286e

Browse files
authored
Update __restrict__ pointer syntax to allow compilation with clang++ (NVIDIA#205)
Signed-off-by: Ben Howe <[email protected]>
1 parent fef5505 commit 07b286e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/core/include/cuda-qx/core/tensor_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class tensor_impl
7474
scalar_type *scalar_data = new scalar_type[size]();
7575
auto result = iter->second(scalar_data, {num_rows, num_cols});
7676
for (size_t r = 0; r < num_rows; r++) {
77-
Scalar __restrict__ *resultRow = &result->at({r, 0});
77+
Scalar *__restrict__ resultRow = &result->at({r, 0});
7878
for (size_t c = 0; c < num_cols; c++) {
7979
resultRow[c] = data[r][c] - '0';
8080
}

0 commit comments

Comments
 (0)