-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1902 from nakajee/release/rocm-rel-6.1
Hotfix: Fix WorkspaceCheck implementation when used in rocBLAS
- Loading branch information
Showing
31 changed files
with
313 additions
and
118 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env python3 | ||
|
||
################################################################################ | ||
# | ||
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved. | ||
# | ||
# 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. | ||
# | ||
################################################################################ | ||
|
||
import sys | ||
import yaml | ||
import msgpack | ||
|
||
if __name__ == "__main__": | ||
args = sys.argv[1:] | ||
infile = args[0] | ||
outfile = args[1] | ||
with open(infile) as f: | ||
data = yaml.load(f) | ||
with open(outfile, 'wb') as f: | ||
msgpack.dump(data, f) |
Binary file modified
BIN
+123 KB
(220%)
HostLibraryTests/configs/SolutionLibraries/KernelsLite.dat.gz
Binary file not shown.
Binary file modified
BIN
+158 KB
(270%)
HostLibraryTests/configs/SolutionLibraries/KernelsLite.yaml.gz
Binary file not shown.
Binary file modified
BIN
+165 KB
(230%)
HostLibraryTests/configs/SolutionLibraries/KernelsLiteMixed.dat.gz
Binary file not shown.
Binary file modified
BIN
+217 KB
(300%)
HostLibraryTests/configs/SolutionLibraries/KernelsLiteMixed.yaml.gz
Binary file not shown.
Binary file modified
BIN
-5.97 KB
(85%)
HostLibraryTests/configs/SolutionLibraries/KernelsLiteNavi.dat.gz
Binary file not shown.
Binary file modified
BIN
+1.23 KB
(100%)
HostLibraryTests/configs/SolutionLibraries/KernelsLiteNavi.yaml.gz
Binary file not shown.
Binary file modified
BIN
-8.27 KB
(67%)
HostLibraryTests/configs/SolutionLibraries/KernelsTileLite.dat.gz
Binary file not shown.
Binary file modified
BIN
+9.89 KB
(220%)
HostLibraryTests/configs/SolutionLibraries/KernelsTileLite.yaml.gz
Binary file not shown.
Binary file modified
BIN
+18 Bytes
(100%)
HostLibraryTests/configs/SolutionLibraries/SampleTensileKernels.dat.gz
Binary file not shown.
Binary file modified
BIN
+7 Bytes
(100%)
HostLibraryTests/configs/SolutionLibraries/SampleTensileKernels.yaml.gz
Binary file not shown.
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,31 @@ | ||
Sample libraries can be rebuilt using TensileCreateLibrary and rocBLAS build. | ||
|
||
To rebuild rocBLAS_Full, run rocBLAS build script. | ||
Sample library currently includes gfx803, gfx900, gfx906, and gfx908. | ||
To build yaml version, include the --no-msgpack flag. | ||
|
||
./install.sh -dc -t ~/tensile -a "gfx803;gfx900;gfx906;gfx908" --merge-architectures --no-lazy-library-loading | ||
./install.sh -dc -t ~/tensile -a "gfx803;gfx900;gfx906;gfx908" --merge-architectures --no-lazy-library-loading --no-msgpack | ||
|
||
SampleTensileKernels are small samples written manually. | ||
To update, make any required updates to SampleTensileKernels.yaml and call the script to convert to msgpack | ||
|
||
cd HostLibraryTests | ||
./LibYamlToMsgpack.py configs/SolutionLibraries/SampleTensileKernels.yaml configs/SolutionLibraries/SampleTensileKernels.dat | ||
|
||
Other libs can be rebuilt by calling TensileCreateLibrary. | ||
|
||
KernelsLite: | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=yaml ../HostLibraryTests/configs/lite_configs/ . HIP | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=msgpack ../HostLibraryTests/configs/lite_configs/ . HIP | ||
KernelsLiteMixed: | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=yaml ../HostLibraryTests/configs/lite_configs_mixed/ . HIP | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=msgpack ../HostLibraryTests/configs/lite_configs_mixed/ . HIP | ||
KernelsLiteNavi: | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=yaml ../Tensile/Source/lib/configs/lite_configs/ . HIP | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=msgpack ../Tensile/Source/lib/configs/lite_configs/ . HIP | ||
KernelsTileLite: | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=yaml ../HostLibraryTests/configs/tile_aware_selection/ . HIP | ||
../Tensile/bin/TensileCreateLibrary --merge-files --code-object-version=default --library-format=msgpack ../HostLibraryTests/configs/tile_aware_selection/ . HIP | ||
|
||
All libraries are checked in as .gz to reduce checkout size |
Binary file modified
BIN
-1.1 MB
(66%)
HostLibraryTests/configs/SolutionLibraries/rocBLAS_Full.dat.gz
Binary file not shown.
Binary file modified
BIN
+682 KB
(140%)
HostLibraryTests/configs/SolutionLibraries/rocBLAS_Full.yaml.gz
Binary file not shown.
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
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
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
Oops, something went wrong.