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

KernelTuningNet for CK [Update CK Fwd, CK Wrw + New integration CK Bwd] #3464

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

msaudulhassan
Copy link
Contributor

No description provided.

Comment on lines +318 to +335
features[0] = 0.0;
features[n + 1] = problem.GetOutChannels();
features[2 * n + 2] = problem.GetOutHeight();
features[3 * n + 3] = problem.GetOutWidth();
features[4 * n + 4] = problem.GetInChannels();
features[5 * n + 5] = problem.GetInHeight();
features[6 * n + 6] = problem.GetInWidth();
features[7 * n + 7] = problem.GetWeightsHeight();
features[8 * n + 8] = problem.GetWeightsWidth();
features[9 * n + 9] = problem.GetPadH();
features[10 * n + 10] = problem.GetPadW();
features[11 * n + 11] = problem.GetKernelStrideH();
features[12 * n + 12] = problem.GetKernelStrideW();
features[13 * n + 13] = problem.GetDilationH();
features[14 * n + 14] = problem.GetDilationW();
features[15 * n + 15] = problem.GetBatchSize();
features[16 * n + 16] = problem.GetInDataType() == miopenFloat ? 2.0 : 1.0;
features[17 * n + 17] = problem.GetGroupCount();
Copy link
Contributor

@BrianHarrisonAMD BrianHarrisonAMD Jan 9, 2025

Choose a reason for hiding this comment

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

For the other arch's, it looks like it's flipping the in/out depending on direction, but not for gfx90a.
Is that intentional?

Copy link
Contributor

@cderb cderb Jan 9, 2025

Choose a reason for hiding this comment

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

I suspect that gfx90a should also be flipping in/out based on direction.

Comment on lines 280 to 285
//std::cout << "\nBEFORE REMOVING\n";
//for (auto i: heuristic_indexes) {
// for (auto x: heuristic_kernels[heuristic_indexes[i]])
// std::cout << x << " ";
// std::cout << "\n";
//}
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out code could be removed.

Comment on lines 296 to 304
std::cout << "\nAFTER REMOVING\n";
for (auto i: heuristic_indexes) {
for (auto x: heuristic_kernels[heuristic_indexes[i]])
std::cout << x << " ";
std::cout << "\n";
std::cout << valid_kernels[heuristic_indexes[i]];
std::cout << "\n";
}
std::cout << "\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be removed, or made into logging statements maybe?

Comment on lines 761 to 768
std::cout << "\n";
std::cout << i;
std::cout << " " + std::to_string(token) + " " + value;
//std::cout << "\nTOKEN SCORES";
//for(int j = 0; j < token_scores.size(); j++) {
// std::cout << token_scores[j] << " ";
//}
//std::cout << std::endl;
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out code, and cout.
Should this be removed, or made into logging statements?

Comment on lines 710 to 713
std::cout << "\nFeatures: ";
for (int i = 0; i < 17; ++i)
std::cout << features[i * 17 + i] << ", ";
std::cout << "\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

Commented out code, and cout.
Should this be removed, or made into logging statements?

Comment on lines 735 to 736
std::cout << "\n PREDICT TYPE: " << model->metadata.predict_type << "\n";

Copy link
Contributor

@BrianHarrisonAMD BrianHarrisonAMD Jan 9, 2025

Choose a reason for hiding this comment

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

Should this be removed, or made into logging statements?

@BrianHarrisonAMD BrianHarrisonAMD requested a review from cderb January 9, 2025 15:26
@BrianHarrisonAMD
Copy link
Contributor

Looks like the build is failing on formatting check.

Need to run the formatting script:

#!/bin/bash
find . -iname '*.h' \
    -o -iname '*.hpp' \
    -o -iname '*.cpp' \
    -o -iname '*.h.in' \
    -o -iname '*.hpp.in' \
    -o -iname '*.cpp.in' \
    -o -iname '*.cl' \
| grep -v -E '(build/)|(install/)' \

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.

3 participants