-
Couldn't load subscription status.
- Fork 196
Adding data copy between host and device #323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
13e51dc
1fae902
0b21e53
9a57f23
1dcdd09
d6235cf
c73cb10
91bafbe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,12 +10,12 @@ using namespace taco::ir; | |
| namespace taco { | ||
|
|
||
| SingletonModeFormat::SingletonModeFormat() : | ||
| SingletonModeFormat(false, true, true) { | ||
| SingletonModeFormat(false, true, true, false) { | ||
| } | ||
|
|
||
| SingletonModeFormat::SingletonModeFormat(bool isFull, bool isOrdered, | ||
| bool isUnique, long long allocSize) : | ||
|
||
| ModeFormatImpl("singleton", isFull, isOrdered, isUnique, true, true, | ||
| bool isUnique, bool isZeroless, long long allocSize) : | ||
| ModeFormatImpl("singleton", isFull, isOrdered, isUnique, true, true, isZeroless, | ||
| false, true, false, false, true), | ||
| allocSize(allocSize) { | ||
| } | ||
|
|
@@ -25,6 +25,7 @@ ModeFormat SingletonModeFormat::copy( | |
| bool isFull = this->isFull; | ||
| bool isOrdered = this->isOrdered; | ||
| bool isUnique = this->isUnique; | ||
| bool isZeroless = this->isZeroless; | ||
| for (const auto property : properties) { | ||
| switch (property) { | ||
| case ModeFormat::FULL: | ||
|
|
@@ -45,12 +46,18 @@ ModeFormat SingletonModeFormat::copy( | |
| case ModeFormat::NOT_UNIQUE: | ||
| isUnique = false; | ||
| break; | ||
| case ModeFormat::ZEROLESS: | ||
| isZeroless = true; | ||
| break; | ||
| case ModeFormat::NOT_ZEROLESS: | ||
| isZeroless = false; | ||
| break; | ||
| default: | ||
| break; | ||
| } | ||
| } | ||
| const auto singletonVariant = | ||
| std::make_shared<SingletonModeFormat>(isFull, isOrdered, isUnique); | ||
| std::make_shared<SingletonModeFormat>(isFull, isOrdered, isUnique, isZeroless); | ||
| return ModeFormat(singletonVariant); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should return false for dimension iterators I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, yes. it should return false for dimension iterators. Thank you for correcting me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will modify that line.