summaryrefslogtreecommitdiff
path: root/samples/sgemm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samples/sgemm.cpp')
-rw-r--r--samples/sgemm.cpp3
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};