Repository navigation
[MIOpen] Sync hipconv v0.4.0 #13213
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
Merged
+1,963
−428
Merged
[MIOpen] Sync hipconv v0.4.0 #13213
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fca5ed7
fix(miopen): serialize the ConvHipConv perf config whole
amd-alavin 7912972
Sync hipconv kernels from EMU v0.4.0
amd-alavin c885677
fix(miopen): key ConvHipConv perf-db records to the hipconv minor ver…
amd-alavin 94745cc
docs(miopen): changelog for the hipconv v0.4.0 sync
amd-alavin 4148dda
test(miopen): move ConvHipConv perf-config tests to perf_config_ConvH…
amd-alavin 408de9a
perf(miopen): reject a ConvHipConv record from another config version…
amd-alavin 1b09637
fix(miopen): use starts_with for the ConvHipConv config-version check
amd-alavin badeb3c
test(miopen): check every ConvHipConv config's record in VersionStamp
amd-alavin 481d4ce
test(miopen): run the ConvHipConv dense Wrw suites on gfx1250
amd-alavin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| v0.4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #include "hipconv/hipconv.hpp" | ||
|
|
||
| namespace hipconv | ||
| { | ||
|
|
||
| std::string_view version() { return "@HIPCONV_VERSION@"; } | ||
|
|
||
| std::string_view config_version() { return "@HIPCONV_CONFIG_VERSION@"; } | ||
|
|
||
| } // namespace hipconv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Writes version.cpp for hipconv::version() and config_version(), run at build time by the | ||
| # hipconv_version target. | ||
| # | ||
| # Inputs: SOURCE_DIR (the library root), TEMPLATE, OUTPUT. | ||
| # | ||
| # A published snapshot carries a VERSION file and is read first: it sits inside the consumer's | ||
| # repository, where git describe would name the consumer's tags. A checkout asks git the way | ||
| # publish/publish_to_miopen.sh does, so the two agree. | ||
|
|
||
| set(HIPCONV_VERSION "unknown") | ||
| if(EXISTS "${SOURCE_DIR}/VERSION") | ||
| file(STRINGS "${SOURCE_DIR}/VERSION" HIPCONV_VERSION LIMIT_COUNT 1) | ||
| else() | ||
| find_package(Git QUIET) | ||
| if(GIT_FOUND) | ||
| execute_process( | ||
| COMMAND "${GIT_EXECUTABLE}" describe --tags --match "v[0-9]*" | ||
| WORKING_DIRECTORY "${SOURCE_DIR}" | ||
| OUTPUT_VARIABLE described | ||
| OUTPUT_STRIP_TRAILING_WHITESPACE | ||
| RESULT_VARIABLE described_status | ||
| ERROR_QUIET) | ||
| if(described_status EQUAL 0) | ||
| set(HIPCONV_VERSION "${described}") | ||
| else() | ||
| execute_process( | ||
| COMMAND "${GIT_EXECUTABLE}" rev-parse --short=7 HEAD | ||
| WORKING_DIRECTORY "${SOURCE_DIR}" | ||
| OUTPUT_VARIABLE sha | ||
| OUTPUT_STRIP_TRAILING_WHITESPACE | ||
| RESULT_VARIABLE sha_status | ||
| ERROR_QUIET) | ||
| if(sha_status EQUAL 0) | ||
| set(HIPCONV_VERSION "v0.0.0-0-g${sha}") | ||
| endif() | ||
| endif() | ||
| endif() | ||
| endif() | ||
|
|
||
| # v0.0.0 is the pseudo-version of a build no release tag precedes, which promises nothing | ||
| # about its configs. | ||
| set(HIPCONV_CONFIG_VERSION "unknown") | ||
| if(NOT HIPCONV_VERSION MATCHES "^v0\\.0\\.0" AND HIPCONV_VERSION MATCHES "^(v[0-9]+\\.[0-9]+)\\.") | ||
| # The last MATCHES evaluated sets CMAKE_MATCH_1. | ||
| set(HIPCONV_CONFIG_VERSION "${CMAKE_MATCH_1}") | ||
| endif() | ||
|
|
||
| # configure_file rewrites OUTPUT only when its content changes, so an unchanged version | ||
| # rebuilds nothing. | ||
| configure_file("${TEMPLATE}" "${OUTPUT}" @ONLY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
projects/miopen/src/hipconv/src/arch/cdna4/depthwise/depthwise_1d_toeplitz/config_desc.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #include "direction_field.h" | ||
| #include "config_desc.h" | ||
|
|
||
| namespace hipconv::cdna4::depthwise_1d_toeplitz | ||
| { | ||
|
|
||
| // A stride-2 dgrad entry is stride=1,dilation=2 here, the Config's encoding, not the layer's. | ||
| hipconv::KVDescriptor config_fields(const Config& cfg) | ||
| { | ||
| hipconv::KVDescriptor d; | ||
| d.int_field("kh", cfg.kh); | ||
| d.int_field("kw", cfg.kw); | ||
| d.int_field("stride", cfg.stride); | ||
| d.int_field("dilation", cfg.dilation, /*default=*/1); | ||
| direction_field(d, cfg.direction); | ||
| d.int_field("waves_per_wg", cfg.waves_per_wg); | ||
| d.int_field("group_size", cfg.group_size, /*default=*/8); | ||
| d.bool_field("narrow_c", cfg.narrow_c, /*default=*/false); | ||
| d.int_field("w_fold", cfg.w_fold, /*default=*/1); | ||
| d.int_field("lds_buffers", cfg.lds_buffers, /*default=*/3); | ||
| d.int_field("n_fold", cfg.n_fold, /*default=*/8); | ||
| d.int_field("elem_bytes", cfg.elem_bytes, /*default=*/2); | ||
| return d; | ||
| } | ||
|
|
||
| } // namespace hipconv::cdna4::depthwise_1d_toeplitz |
9 changes: 9 additions & 0 deletions
9
projects/miopen/src/hipconv/src/arch/cdna4/depthwise/depthwise_1d_toeplitz/config_desc.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #pragma once | ||
|
|
||
| #include "kv_descriptor.h" | ||
| #include "config_table.h" | ||
|
|
||
| namespace hipconv::cdna4::depthwise_1d_toeplitz | ||
| { | ||
| hipconv::KVDescriptor config_fields(const Config& cfg); | ||
| } // namespace hipconv::cdna4::depthwise_1d_toeplitz |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.