@@ -49,8 +49,8 @@ class context {
49
49
// / @param AsyncHandler is an instance of async_handler.
50
50
// / @param UseCUDAPrimaryContext is a bool determining whether to use the
51
51
// / primary context in the CUDA backend.
52
- context (const device &Device, async_handler AsyncHandler = {},
53
- bool UseCUDAPrimaryContext = false );
52
+ explicit context (const device &Device, async_handler AsyncHandler = {},
53
+ bool UseCUDAPrimaryContext = false );
54
54
55
55
// / Constructs a SYCL context instance using the provided platform.
56
56
// /
@@ -63,8 +63,8 @@ class context {
63
63
// / @param AsyncHandler is an instance of async_handler.
64
64
// / @param UseCUDAPrimaryContext is a bool determining whether to use the
65
65
// / primary context in the CUDA backend.
66
- context (const platform &Platform, async_handler AsyncHandler = {},
67
- bool UseCUDAPrimaryContext = false );
66
+ explicit context (const platform &Platform, async_handler AsyncHandler = {},
67
+ bool UseCUDAPrimaryContext = false );
68
68
69
69
// / Constructs a SYCL context instance using list of devices.
70
70
// /
@@ -78,8 +78,9 @@ class context {
78
78
// / @param AsyncHandler is an instance of async_handler.
79
79
// / @param UseCUDAPrimaryContext is a bool determining whether to use the
80
80
// / primary context in the CUDA backend.
81
- context (const vector_class<device> &DeviceList,
82
- async_handler AsyncHandler = {}, bool UseCUDAPrimaryContext = false );
81
+ explicit context (const vector_class<device> &DeviceList,
82
+ async_handler AsyncHandler = {},
83
+ bool UseCUDAPrimaryContext = false );
83
84
84
85
// / Constructs a SYCL context instance from OpenCL cl_context.
85
86
// /
0 commit comments