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

Remove writeCmake #1397

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
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
38 changes: 0 additions & 38 deletions tensilelite/Tensile/TensileCreateLibrary.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,40 +1013,6 @@ def buildObjectFilePaths(prefixDir, solutionFiles, sourceKernelFiles, asmKernelF

return (solutionPaths, sourceKernelPaths, asmKernelPaths, sourceLibPaths, asmLibPaths, libMetadataPaths)

################################################################################
# Write CMake
################################################################################
@timing
def writeCMake(outputPath, solutionFiles, kernelFiles, libraryStaticFiles, masterLibraries):
print1("# Writing Custom CMake")

# Build output file paths, using relative CMake symbol
cmakeSrcDir = "${CMAKE_SOURCE_DIR}"
(solutionPaths, sourceKernelPaths, asmKernelPaths, sourceLibPaths, asmLibPaths, _) = \
buildObjectFilePaths(cmakeSrcDir, solutionFiles, kernelFiles, [], [], [], masterLibraries)

# Build full paths the static library files
staticFilePaths = []
for staticFile in libraryStaticFiles:
staticFilePaths += [ os.path.join(cmakeSrcDir, staticFile) ]

# Proceed to generate cmake file
generatedFile = open(os.path.join(os.path.normcase(outputPath), "Generated.cmake"), "w")
generatedFile.write(CMakeHeader)

# write TensileClient_KERNELS symbol
generatedFile.write("set( TensileClient_KERNELS\n")
for kernelFile in sourceKernelPaths:
generatedFile.write(" %s\n" % (kernelFile))
generatedFile.write(" )\n")

# write TensileClient_SOURCE symbol
generatedFile.write("set( TensileClient_SOURCE\n")
for fileName in libraryStaticFiles:
generatedFile.write(" ${CMAKE_SOURCE_DIR}/%s\n" % fileName)
generatedFile.write(" )\n\n")

generatedFile.close()

################################################################################
# Generate Kernel Objects From Solutions
Expand Down Expand Up @@ -1467,10 +1433,6 @@ def validLogicFile(p: Path):
if globalParameters["GenerateManifestAndExit"] == True:
return

# generate cmake for the source kernels,
if not arguments["GenerateSourcesAndExit"]:
writeCMake(outputPath, solutionFiles, sourceKernelFiles, staticFiles, masterLibraries)

# Make sure to copy the library static files.
for fileName in staticFiles:
shutil.copy( os.path.join(globalParameters["SourcePath"], fileName), \
Expand Down