diff options
Diffstat (limited to 'parallel-libs/streamexecutor/examples/HostSaxpy.cpp')
-rw-r--r-- | parallel-libs/streamexecutor/examples/HostSaxpy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parallel-libs/streamexecutor/examples/HostSaxpy.cpp b/parallel-libs/streamexecutor/examples/HostSaxpy.cpp index 5bcbcc898ce..cf81b0ba915 100644 --- a/parallel-libs/streamexecutor/examples/HostSaxpy.cpp +++ b/parallel-libs/streamexecutor/examples/HostSaxpy.cpp @@ -33,8 +33,8 @@ using SaxpyKernel = // Wrapper function converts argument addresses to arguments. void SaxpyWrapper(const void *const *ArgumentAddresses) { Saxpy(*static_cast<const float *>(ArgumentAddresses[0]), - static_cast<float *>(const_cast<void *>(ArgumentAddresses[1])), - static_cast<float *>(const_cast<void *>(ArgumentAddresses[2])), + *static_cast<float **>(const_cast<void *>(ArgumentAddresses[1])), + *static_cast<float **>(const_cast<void *>(ArgumentAddresses[2])), *static_cast<const size_t *>(ArgumentAddresses[3])); } |