From d6119d8f49be6149c176f3de34a9e65cd7a20064 Mon Sep 17 00:00:00 2001 From: msglm Date: Thu, 19 Jun 2025 19:25:22 -0500 Subject: import guix-hpc amd modules and add gfx1100 support --- .../patches/tensile-5.3.3-copy-if-not-exist.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 amd/packages/patches/tensile-5.3.3-copy-if-not-exist.patch (limited to 'amd/packages/patches/tensile-5.3.3-copy-if-not-exist.patch') diff --git a/amd/packages/patches/tensile-5.3.3-copy-if-not-exist.patch b/amd/packages/patches/tensile-5.3.3-copy-if-not-exist.patch new file mode 100644 index 0000000..44f9969 --- /dev/null +++ b/amd/packages/patches/tensile-5.3.3-copy-if-not-exist.patch @@ -0,0 +1,19 @@ +Only copy static files if they do not already exist at the destination +diff --git a/Tensile/TensileCreateLibrary.py b/Tensile/TensileCreateLibrary.py +index 2d63160b..a7ccf268 100644 +--- a/Tensile/TensileCreateLibrary.py ++++ b/Tensile/TensileCreateLibrary.py +@@ -738,8 +738,11 @@ def copyStaticFiles(outputPath=None): + + for fileName in libraryStaticFiles: + # copy file +- shutil.copy( os.path.join(globalParameters["SourcePath"], fileName), \ +- outputPath ) ++ ++ path = os.path.join(globalParameters["SourcePath"], fileName) ++ if not os.path.isfile(path): ++ shutil.copy( os.path.join(globalParameters["SourcePath"], fileName), \ ++ outputPath ) + + return libraryStaticFiles + -- cgit v1.2.3