@@ -186,9 +186,9 @@ TEST(AddressComputationThunkTest, SlicedGemm) {
186
186
187
187
// Preparing parameters for thunk execution.
188
188
ServiceExecutableRunOptions run_options;
189
+ se::StreamExecutorMemoryAllocator allocator (executor);
189
190
BufferAllocations allocations (
190
- {lhs, rhs, out, workspace, lhs_offset_0, lhs_offset_1}, 0 ,
191
- executor->GetAllocator ());
191
+ {lhs, rhs, out, workspace, lhs_offset_0, lhs_offset_1}, 0 , &allocator);
192
192
193
193
Thunk::ExecuteParams params =
194
194
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -358,9 +358,10 @@ TEST(AddressComputationThunkTest, SlicedNonContiguousGemm) {
358
358
359
359
// Preparing parameters for thunk execution.
360
360
ServiceExecutableRunOptions run_options;
361
+ se::StreamExecutorMemoryAllocator allocator (executor);
361
362
BufferAllocations allocations ({lhs, rhs, out, workspace, lhs_offset_0,
362
363
lhs_offset_1, rhs_offset_0, rhs_offset_1},
363
- 0 , executor-> GetAllocator () );
364
+ 0 , &allocator );
364
365
365
366
Thunk::ExecuteParams params =
366
367
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -527,9 +528,10 @@ TEST(AddressComputationThunkTest, MulipleSlicedOperandsGemm) {
527
528
528
529
// Preparing parameters for thunk execution.
529
530
ServiceExecutableRunOptions run_options;
531
+ se::StreamExecutorMemoryAllocator allocator (executor);
530
532
BufferAllocations allocations ({lhs, rhs, out, workspace, lhs_offset_0,
531
533
lhs_offset_1, rhs_offset_0, rhs_offset_1},
532
- 0 , executor-> GetAllocator () );
534
+ 0 , &allocator );
533
535
534
536
Thunk::ExecuteParams params =
535
537
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -673,9 +675,9 @@ TEST(AddressComputationThunkTest, SlicedMemcpy) {
673
675
674
676
// Preparing parameters for thunk execution.
675
677
ServiceExecutableRunOptions run_options;
678
+ se::StreamExecutorMemoryAllocator allocator (executor);
676
679
BufferAllocations allocations (
677
- {src, dst, offset_0, offset_1, offset_2, offset_3}, 0 ,
678
- executor->GetAllocator ());
680
+ {src, dst, offset_0, offset_1, offset_2, offset_3}, 0 , &allocator);
679
681
680
682
Thunk::ExecuteParams params =
681
683
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -861,10 +863,11 @@ TEST(AddressComputationThunkTest, SlicedOutputMemcpy) {
861
863
862
864
// Preparing parameters for thunk execution.
863
865
ServiceExecutableRunOptions run_options;
866
+ se::StreamExecutorMemoryAllocator allocator (executor);
864
867
BufferAllocations allocations (
865
868
{src, dst, src_offset_0, src_offset_1, src_offset_2, src_offset_3,
866
869
dst_offset_0, dst_offset_1, dst_offset_2, dst_offset_3},
867
- 0 , executor-> GetAllocator () );
870
+ 0 , &allocator );
868
871
869
872
Thunk::ExecuteParams params =
870
873
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -1024,9 +1027,9 @@ TEST(AddressComputationThunkTest, SlicedGemmArbitraryArgumentOrder) {
1024
1027
1025
1028
// Preparing parameters for thunk execution.
1026
1029
ServiceExecutableRunOptions run_options;
1030
+ se::StreamExecutorMemoryAllocator allocator (executor);
1027
1031
BufferAllocations allocations (
1028
- {workspace, lhs, out, rhs, lhs_offset_0, lhs_offset_1}, 0 ,
1029
- executor->GetAllocator ());
1032
+ {workspace, lhs, out, rhs, lhs_offset_0, lhs_offset_1}, 0 , &allocator);
1030
1033
1031
1034
Thunk::ExecuteParams params =
1032
1035
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -1174,10 +1177,11 @@ TEST(AddressComputationThunkTest, SlicedGemmArbitraryNumberOfArguments) {
1174
1177
1175
1178
// Preparing parameters for thunk execution.
1176
1179
ServiceExecutableRunOptions run_options;
1180
+ se::StreamExecutorMemoryAllocator allocator (executor);
1177
1181
BufferAllocations allocations (
1178
1182
{workspace, /* garbage, to be ignored*/ se::DeviceMemoryBase (), out, rhs,
1179
1183
lhs_offset_0, lhs_offset_1, /* garbage, to be ignored*/ rhs, lhs},
1180
- 0 , executor-> GetAllocator () );
1184
+ 0 , &allocator );
1181
1185
1182
1186
Thunk::ExecuteParams params =
1183
1187
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -1323,9 +1327,10 @@ TEST(AddressComputationThunkTest, SlicedTupledOperandGemm) {
1323
1327
1324
1328
// Preparing parameters for thunk execution.
1325
1329
ServiceExecutableRunOptions run_options;
1330
+ se::StreamExecutorMemoryAllocator allocator (executor);
1326
1331
BufferAllocations allocations (
1327
1332
{lhs_whole_buffer, rhs, out, workspace, lhs_offset_0, lhs_offset_1}, 0 ,
1328
- executor-> GetAllocator () );
1333
+ &allocator );
1329
1334
1330
1335
Thunk::ExecuteParams params =
1331
1336
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -1506,10 +1511,11 @@ TEST(AddressComputationThunkTest, SlicedMemcpyOOB) {
1506
1511
1507
1512
// Preparing parameters for thunk execution.
1508
1513
ServiceExecutableRunOptions run_options;
1514
+ se::StreamExecutorMemoryAllocator allocator (executor);
1509
1515
BufferAllocations allocations (
1510
1516
{src, dst, src_offset_0, src_offset_1, src_offset_2, src_offset_3,
1511
1517
dst_offset_0, dst_offset_1, dst_offset_2, dst_offset_3},
1512
- 0 , executor-> GetAllocator () );
1518
+ 0 , &allocator );
1513
1519
1514
1520
Thunk::ExecuteParams params =
1515
1521
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
@@ -1675,8 +1681,9 @@ TEST(AddressComputationThunkTest, SlicedOperandsSameBufferGemm) {
1675
1681
1676
1682
// Preparing parameters for thunk execution.
1677
1683
ServiceExecutableRunOptions run_options;
1684
+ se::StreamExecutorMemoryAllocator allocator (executor);
1678
1685
BufferAllocations allocations ({buffer, workspace, lhs_offset_0, lhs_offset_1},
1679
- 0 , executor-> GetAllocator () );
1686
+ 0 , &allocator );
1680
1687
1681
1688
Thunk::ExecuteParams params =
1682
1689
Thunk::ExecuteParams::Create (run_options, allocations, stream.get (),
0 commit comments