Unverified Commit 2781ccd8 authored by turneram's avatar turneram Committed by GitHub
Browse files

Add __restrict__ to jit kernel params (#1300)

parent 2bbb50c4
...@@ -51,9 +51,9 @@ static const char* const make_tensor_template = R"__migraphx__( ...@@ -51,9 +51,9 @@ static const char* const make_tensor_template = R"__migraphx__(
template<> template<>
struct make_tensor<${n}> struct make_tensor<${n}>
{ {
static __device__ auto apply(void* p) static __device__ auto apply(void* __restrict__ p)
{ {
return make_tensor_view(reinterpret_cast<${type}*>(p), make_shape(${lens}, ${strides})); return make_tensor_view(reinterpret_cast<${type}* __restrict__>(p), make_shape(${lens}, ${strides}));
} }
}; };
)__migraphx__"; )__migraphx__";
......
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