co-authored by
Aniket Shivam
parent
9b8166e3f0
commit
d572cc1aab
@@ -372,7 +372,7 @@ Status TrmmOperationProfiler::initialize_workspace(
|
||||
static_cast<library::TrmmDescription const &>(operation->description());
|
||||
|
||||
if (options.execution_mode != ExecutionMode::kDryRun) {
|
||||
|
||||
int seed_shift = 0;
|
||||
if (operation_desc.side_mode == SideMode::kLeft) {
|
||||
trmm_workspace_.A = device_context.allocate_tensor(
|
||||
options,
|
||||
@@ -381,7 +381,8 @@ Status TrmmOperationProfiler::initialize_workspace(
|
||||
operation_desc.A.layout,
|
||||
{int(problem_.m), int(problem_.m)},
|
||||
{int(problem_.lda)},
|
||||
1 // batch_count = 1, default
|
||||
1, // batch_count
|
||||
seed_shift++
|
||||
);
|
||||
} else if (operation_desc.side_mode == SideMode::kRight) {
|
||||
trmm_workspace_.A = device_context.allocate_tensor(
|
||||
@@ -391,7 +392,8 @@ Status TrmmOperationProfiler::initialize_workspace(
|
||||
operation_desc.A.layout,
|
||||
{int(problem_.n), int(problem_.n)},
|
||||
{int(problem_.lda)},
|
||||
1 // batch_count = 1, default
|
||||
1, // batch_count
|
||||
seed_shift++
|
||||
);
|
||||
}
|
||||
|
||||
@@ -401,7 +403,9 @@ Status TrmmOperationProfiler::initialize_workspace(
|
||||
operation_desc.B.element,
|
||||
operation_desc.B.layout,
|
||||
{int(problem_.m), int(problem_.n)},
|
||||
{int(problem_.ldb)}
|
||||
{int(problem_.ldb)},
|
||||
1, // batch_count
|
||||
seed_shift++
|
||||
);
|
||||
|
||||
trmm_workspace_.Computed = device_context.allocate_tensor(
|
||||
|
||||
Reference in New Issue
Block a user