Skip to content

Commit aa0628b

Browse files
committed
[SYCL] Skip initialization in default vec constructor
This initialization is unnecessary and might lead to poor performance. Signed-off-by: Alexey Bader <[email protected]>
1 parent c71107b commit aa0628b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ template <typename Type, int NumElements> class vec {
357357
using vector_t = DataType;
358358
#endif
359359

360-
vec() { m_Data = {0}; }
360+
vec() = default;
361361

362362
// TODO Remove this difference between host and device side after
363363
// when root cause of API incompatibility will be fixed

0 commit comments

Comments
 (0)