diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-05-15 22:14:17 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-05-15 22:14:17 +0200 |
commit | 953a5a9c2246439f1c68a0872bbf83d5d0dd466f (patch) | |
tree | bfa5d4ee6722a2651c1ecdcff9783947e8d80079 /samples | |
parent | 8400ee3a097952a49371973780b47fcbf63e9a5f (diff) |
Fixed a minor compilation issue of a sample with GCC 4.8
Diffstat (limited to 'samples')
-rw-r--r-- | samples/sgemm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/sgemm.cpp b/samples/sgemm.cpp index b960865b..ab7858e1 100644 --- a/samples/sgemm.cpp +++ b/samples/sgemm.cpp @@ -62,7 +62,8 @@ int main() { auto device = devices[device_id]; // Creates the OpenCL context, queue, and an event - auto context = cl::Context({device}); + auto device_as_vector = std::vector<cl::Device>{device}; + auto context = cl::Context(device_as_vector); auto queue = cl::CommandQueue(context, device); auto event = cl_event{nullptr}; |