Skip to content

Commit

Permalink
don't run autoscheduling commands if manual schedule is provided in c…
Browse files Browse the repository at this point in the history
…ommand line tool fixes #336
  • Loading branch information
RSenApps committed Dec 4, 2020
1 parent 56c1e3e commit 486cd9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/taco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,6 @@ int main(int argc, char* argv[]) {
IndexStmt stmt =
makeConcreteNotation(makeReductionNotation(tensor.getAssignment()));
stmt = reorderLoopsTopologically(stmt);
stmt = insertTemporaries(stmt);
stmt = parallelizeOuterLoop(stmt);

if (setSchedule) {
stringstream scheduleStream;
Expand All @@ -940,6 +938,10 @@ int main(int argc, char* argv[]) {

cuda |= setSchedulingCommands(scheduleStream, parser, stmt);
}
else {
stmt = insertTemporaries(stmt);
stmt = parallelizeOuterLoop(stmt);
}

if (cuda) {
if (!CUDA_BUILT && benchmark) {
Expand Down

0 comments on commit 486cd9f

Please sign in to comment.