Skip to content
Open
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2c2e494
Add support for gfx1201 on Windows
amd-mtrifuno Nov 28, 2024
73e19e4
Fix ROCM PATH in cmake file
amd-mtrifuno Dec 13, 2024
e20ab2a
Edit CMakeLists.txt files and delete comments
amd-mtrifuno Jan 23, 2025
95381c1
Fix clang path
amd-mtrifuno Jan 23, 2025
dd31352
Add check for windows specific code
amd-mtrifuno Jan 24, 2025
add16f4
Fix error in CMakeLists.txt
amd-mtrifuno Jan 29, 2025
0993192
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Jan 29, 2025
6144d76
Delete comments
amd-mtrifuno Jan 29, 2025
4c318d4
Fix clang path
amd-mtrifuno Jan 30, 2025
b56639a
Edit rtest.py script
amd-mtrifuno Jan 31, 2025
7677573
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Feb 3, 2025
4bc8734
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Feb 6, 2025
aa7f02d
Fix ssize_t in Windows case
amd-mtrifuno Feb 6, 2025
ce4b66a
Add extension for hipconfig on Windows
amd-mtrifuno Feb 6, 2025
d945f8d
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Feb 10, 2025
b9d06b3
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Feb 12, 2025
70f13a9
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Feb 13, 2025
5fb37df
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Feb 14, 2025
0d3001f
Fix hipcc version print on Windows
amd-mtrifuno Feb 14, 2025
8071a17
Change namespace of ClockType enum
amd-mtrifuno Feb 18, 2025
8a5c0e3
Fix library install path
amd-mtrifuno Feb 24, 2025
7bc2658
Fix tox tests on gfx942
amd-mtrifuno Feb 25, 2025
3173b90
Remove split of client library script args
amd-mtrifuno Feb 27, 2025
0c0a52c
Fix args of client library script
amd-mtrifuno Mar 6, 2025
1259c68
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Mar 18, 2025
acc4f60
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Mar 26, 2025
1623b50
Merge branch 'develop' into windows_gfx1201
amd-mtrifuno Mar 27, 2025
49a7d20
Remove castT in linux case
amd-mtrifuno Mar 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions tensilelite/Tensile/ClientWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def main(config, cxxCompiler: str, cCompiler: str, outputPath: Path):
functionNames = []

createLibraryScript = getBuildClientLibraryScript(clientLibraryPath, libraryLogicPath, cxxCompiler)
subprocess.run(shlex.split(createLibraryScript), cwd=clientLibraryPath)
subprocess.run(createLibraryScript, cwd=clientLibraryPath)
coList = glob(os.path.join(clientLibraryPath, "library/*.co"))
yamlList = glob(os.path.join(clientLibraryPath, "library/*.yaml"))

Expand Down Expand Up @@ -201,28 +201,25 @@ def runClient(libraryLogicPath, forBenchmark, enableTileSelection, cxxCompiler:
return process.returncode

def getBuildClientLibraryScript(buildPath, libraryLogicPath, cxxCompiler):
import io
runScriptFile = io.StringIO()

callCreateLibraryCmd = ["python"] if os.name == "nt" else []
callCreateLibraryCmd += ROOT_PATH + "/bin/TensileCreateLibrary"

if not globalParameters["LazyLibraryLoading"]:
callCreateLibraryCmd += " --no-lazy-library-loading"
callCreateLibraryCmd += [" --no-lazy-library-loading"]

if globalParameters["ShortNames"]:
callCreateLibraryCmd += " --short-file-names"
callCreateLibraryCmd += [" --short-file-names"]

if globalParameters.get("AsmDebug", False):
callCreateLibraryCmd += [" --asm-debug",]

if globalParameters["KeepBuildTmp"]:
callCreateLibraryCmd += [" --keep-build-tmp"]

callCreateLibraryCmd += " --architecture=" + globalParameters["Architecture"]
callCreateLibraryCmd += " --code-object-version=" + globalParameters["CodeObjectVersion"]
callCreateLibraryCmd += " --cxx-compiler=" + cxxCompiler
callCreateLibraryCmd += " --library-format=" + globalParameters["LibraryFormat"]
callCreateLibraryCmd += [" --architecture=" + globalParameters["Architecture"]]
callCreateLibraryCmd += [" --code-object-version=" + globalParameters["CodeObjectVersion"]]
callCreateLibraryCmd += [" --cxx-compiler=" + cxxCompiler]
callCreateLibraryCmd += [" --library-format=" + globalParameters["LibraryFormat"]]

callCreateLibraryCmd += [" %s" % libraryLogicPath]
callCreateLibraryCmd += [" %s" % buildPath] #" ../source"
Expand Down