Skip to content

Commit 8d591cb

Browse files
committed
calm GCC
1 parent 73dc01b commit 8d591cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/source/detail/device_impl.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,6 +2233,10 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
22332233
{0, 0, 0, 8, 8, 4, matrix_type::fp64, matrix_type::fp64,
22342234
matrix_type::fp64, matrix_type::fp64}};
22352235
if (ComputeCapability >= 8.0) {
2236+
// GCC fails without reserve()
2237+
sm_80_combinations.reserve(sm_80_combinations.size() +
2238+
sm_72_combinations.size() +
2239+
sm_70_combinations.size());
22362240
sm_80_combinations.insert(sm_80_combinations.end(),
22372241
sm_72_combinations.begin(),
22382242
sm_72_combinations.end());

0 commit comments

Comments
 (0)