summaryrefslogtreecommitdiff
path: root/parallel-libs/acxxel/examples/opencl_example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parallel-libs/acxxel/examples/opencl_example.cpp')
-rw-r--r--parallel-libs/acxxel/examples/opencl_example.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/parallel-libs/acxxel/examples/opencl_example.cpp b/parallel-libs/acxxel/examples/opencl_example.cpp
index 713daac2627..4e3cf0795b5 100644
--- a/parallel-libs/acxxel/examples/opencl_example.cpp
+++ b/parallel-libs/acxxel/examples/opencl_example.cpp
@@ -57,9 +57,9 @@ void saxpy(float A, std::array<float, N> &X, const std::array<float, N> &Y) {
int main() {
float A = 2.f;
- std::array<float, 3> X = {0.f, 1.f, 2.f};
- std::array<float, 3> Y = {3.f, 4.f, 5.f};
- std::array<float, 3> Expected = {3.f, 6.f, 9.f};
+ std::array<float, 3> X{{0.f, 1.f, 2.f}};
+ std::array<float, 3> Y{{3.f, 4.f, 5.f}};
+ std::array<float, 3> Expected{{3.f, 6.f, 9.f}};
saxpy(A, X, Y);
for (int I = 0; I < 3; ++I)
if (X[I] != Expected[I]) {