Skip to content
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

Fix clang-tidy errors, closes #189 #583

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Fix clang-tidy errors, closes #189 #583

merged 1 commit into from
Sep 4, 2024

Conversation

nsmithtt
Copy link
Contributor

@nsmithtt nsmithtt commented Sep 2, 2024

No description provided.

TT_FATAL(isOnHost(inputTensor) or isOnDevice(inputTensor),
"Unsupported storage type {}", inputTensor.storage_type());
assert((isOnHost(inputTensor) or isOnDevice(inputTensor)) &&
"Unsupported storage type");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnie-TT, unfortunately we cannot use TT_FATAL, we just happened to pull in metal's assert.hpp, but this is not public API.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good... Thanks for updating this!

@@ -131,11 +131,10 @@ mlir::tt::SystemDescAttr::getFromPath(MLIRContext *context, std::string &path) {

// Acquire chip descs
std::vector<tt::ChipDescAttr> chip_desc_list;
for (auto element : *binary_chip_desc) {

for (auto const *element : *binary_chip_desc) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy suggests all uses of auto are at least qualified with specifiers.

@nsmithtt nsmithtt force-pushed the nsmith/lint branch 2 times, most recently from b95081e to 58f8177 Compare September 3, 2024 20:34
@nsmithtt nsmithtt force-pushed the nsmith/lint branch 5 times, most recently from 0b08397 to cce8a5b Compare September 4, 2024 03:15
@nsmithtt nsmithtt merged commit abd5bfb into main Sep 4, 2024
13 checks passed
@nsmithtt nsmithtt deleted the nsmith/lint branch September 4, 2024 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants