-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into asm_igemm_nhwc_fwd…
…_bwd
- Loading branch information
Showing
21 changed files
with
8,448 additions
and
516 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -78,7 +78,8 @@ RUN cget -p $PREFIX init --cxx /opt/rocm/llvm/bin/clang++ --std=c++14 -DAMDGPU_T | |
# Install dependencies | ||
RUN cget -p $PREFIX install pfultz2/rocm-recipes | ||
# Install a newer version of cmake for libMLIRMIOpen | ||
RUN cget -p $PREFIX install kitware/[email protected] | ||
RUN cget -p $PREFIX install kitware/[email protected] | ||
|
||
ADD min-requirements.txt /min-requirements.txt | ||
RUN CXXFLAGS='-isystem $PREFIX/include' cget -p $PREFIX install -f /min-requirements.txt | ||
RUN cget -p $PREFIX install danmar/cppcheck@dd05839a7e63ef04afd34711cb3e1e0ef742882f | ||
|
@@ -92,19 +93,15 @@ RUN pip install -r /doc-requirements.txt | |
RUN if [ "$USE_TARGETID" = "ON" ] ; then export HIPCC_LINK_FLAGS_APPEND='-O3 -parallel-jobs=4' && export HIPCC_COMPILE_FLAGS_APPEND='-O3 -Wno-format-nonliteral -parallel-jobs=4' && rm /usr/bin/hipcc; fi | ||
|
||
# install last released miopentensile in default (master), install latest commits when MIOTENSILE_VER="latest" (develop) | ||
RUN if [ "$USE_TARGETID" = "OFF" ] ; then echo "MIOpenTensile is not installed."; elif [ "$MIOTENSILE_VER" = "latest" ] ; then cget -p $PREFIX install ROCmSoftwarePlatform/MIOpenTensile@be26d30d3d7509a414134a45f4a6d49e5da250b8; else cget -p $PREFIX install ROCmSoftwarePlatform/MIOpenTensile@4bfe00a8de61d12862d9fa803b8ea9a981a50f97; fi | ||
RUN if [ "$USE_TARGETID" = "OFF" ] ; then echo "MIOpenTensile is not installed."; elif [ "$MIOTENSILE_VER" = "latest" ] ; then cget -p $PREFIX install ROCmSoftwarePlatform/MIOpenTensile@4fda8d57c6b088333b0392ba0617b0d6eec5d5b7; else cget -p $PREFIX install ROCmSoftwarePlatform/MIOpenTensile@403fc13acb8518c3f82a79dc501b21ef1751e470; fi | ||
|
||
RUN cd ~ && \ | ||
export MLIR_COMMIT=bbce2f3216e013efe59d7e9c021b4896f89176b0 && \ | ||
export MLIR_COMMIT=44abc4783fe2f6b4415871f7c44aa52ab89bccab && \ | ||
wget https://github.com/ROCmSoftwarePlatform/llvm-project-mlir/archive/$MLIR_COMMIT.tar.gz && \ | ||
tar -xvzf $MLIR_COMMIT.tar.gz && \ | ||
rm -rf $MLIR_COMMIT.tar.gz && \ | ||
cd llvm-project-mlir-$MLIR_COMMIT && mkdir -p build && cd build && \ | ||
$PREFIX/bin/cmake -G "Unix Makefiles" ../llvm \ | ||
-DLLVM_ENABLE_PROJECTS="mlir;lld" \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_SHARED_LIBS=OFF \ | ||
-DLLVM_BUILD_LLVM_DYLIB=OFF \ | ||
-DLLVM_ENABLE_TERMINFO=OFF && \ | ||
$PREFIX/bin/cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_FAT_LIBMLIRMIOPEN=1 && \ | ||
make -j$(nproc) libMLIRMIOpen && \ | ||
$PREFIX/bin/cmake --install . --component libMLIRMIOpen --prefix /opt/rocm && \ | ||
cd ~ && rm -rf llvm-project-mlir-$MLIR_COMMIT |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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
40 changes: 40 additions & 0 deletions
40
src/kernels/Conv_Winograd_v21_1_2_f3x2_fp32_stride1_group.s
This file contains 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,40 @@ | ||
/******************************************************************************* | ||
* | ||
* MIT License | ||
* | ||
* Copyright (c) 2021 Advanced Micro Devices, Inc. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
*******************************************************************************/ | ||
.include "Conv_Winograd_v21_1_2_metadata.inc" | ||
|
||
KERNEL_PROLOG f3x2_fp32_stride1_group | ||
|
||
.if (.amdgcn.gfx_generation_number == 9) | ||
.if (.amdgcn.gfx_generation_stepping == 10) | ||
.error "gfx90a is not supported yet" | ||
.else | ||
.include "Conv_Winograd_v21_1_2_gfx9_f3x2_fp32_stride1_group.inc" | ||
.endif | ||
.elseif (.amdgcn.gfx_generation_number == 10) | ||
.include "Conv_Winograd_v21_1_2_gfx10_f3x2_fp32_stride1_group.inc" | ||
.endif | ||
|
||
KERNEL_EPILOG f3x2_fp32_stride1_group |
Oops, something went wrong.