wok-current rev 25754 tip
Fix lib path for clinfo and patch libclc for AMD gfx9 / gfx10 (with patch)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Feb 26 14:31:16 2025 +0000 (4 hours ago) |
parents | 931079c1cd02 |
children | |
files | libclc/stuff/libclc-add-missing-AMD-gfx9-and-gfx10-symlinks.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libclc/stuff/libclc-add-missing-AMD-gfx9-and-gfx10-symlinks.patch Wed Feb 26 14:31:16 2025 +0000 1.3 @@ -0,0 +1,43 @@ 1.4 +From 6b63f3e7ef90bcaef54e960a4a5d8df9b5165afc Mon Sep 17 00:00:00 2001 1.5 +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= <zboszor@pr.hu> 1.6 +Date: Mon, 22 Feb 2021 05:48:28 +0100 1.7 +Subject: [PATCH] libclc: add missing AMD gfx9 and gfx10 symlinks 1.8 +MIME-Version: 1.0 1.9 +Content-Type: text/plain; charset=UTF-8 1.10 +Content-Transfer-Encoding: 8bit 1.11 + 1.12 +Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> 1.13 +--- 1.14 + libclc/CMakeLists.txt | 15 +++++++++++++++ 1.15 + 1 file changed, 15 insertions(+) 1.16 + 1.17 +diff --git a//CMakeLists.txt b//CMakeLists.txt 1.18 +index b8b5ceff086c..b60bafa21e4f 100644 1.19 +--- a//CMakeLists.txt 1.20 ++++ b//CMakeLists.txt 1.21 +@@ -170,6 +170,21 @@ if( ${LLVM_VERSION} VERSION_GREATER "6.99.99" ) 1.22 + set( tahiti_aliases ${tahiti_aliases} gfx904 gfx906 ) 1.23 + endif() 1.24 + 1.25 ++# Support for gfx909, gfx1010, gfx1011 and gfx1012 was added in LLVM 10 (r345120) 1.26 ++if( ${LLVM_VERSION} VERSION_GREATER "9.99.99" ) 1.27 ++ set( tahiti_aliases ${tahiti_aliases} gfx909 gfx1010 gfx1011 gfx1012 ) 1.28 ++endif() 1.29 ++ 1.30 ++# Support for gfx908 was added in LLVM 11 (r373411) 1.31 ++if( ${LLVM_VERSION} VERSION_GREATER "10.99.99" ) 1.32 ++ set( tahiti_aliases ${tahiti_aliases} gfx908 ) 1.33 ++endif() 1.34 ++ 1.35 ++# Support for gfx90c, gfx1030, gfx1031, gfx1032, gfx1033 was added in LLVM 12 1.36 ++if( ${LLVM_VERSION} VERSION_GREATER "11.99.99" ) 1.37 ++ set( tahiti_aliases ${tahiti_aliases} gfx90c gfx1030 gfx1031 gfx1032 gfx1033 ) 1.38 ++endif() 1.39 ++ 1.40 + # pkg-config file 1.41 + configure_file( libclc.pc.in libclc.pc @ONLY ) 1.42 + install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libclc.pc DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig ) 1.43 +-- 1.44 +2.29.2 1.45 + 1.46 +