From 195bb6bd5a5c0e1a01792c025169c33b83906273 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Wed, 25 Dec 2024 01:36:11 +0100 Subject: [PATCH 1/2] Disable f128 for amdgpu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `compiler_builtins` fails to compile to amdgpu if f128 is enabled. The reason seems to be that compiler_builtins uses libcalls in the implementation. I’m not really familiar with what libcalls are, but the LLVM amdgpu backend explicitly does not support them. Error message: ``` LLVM ERROR: unsupported libcall legalization ``` --- configure.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.rs b/configure.rs index 0a0bd503..b702f75f 100644 --- a/configure.rs +++ b/configure.rs @@ -79,6 +79,8 @@ pub fn configure_f16_f128(target: &Target) { }; let f128_enabled = match target.arch.as_str() { + // Unsupported (libcall is not supported) + "amdgpu" => false, // Unsupported "arm64ec" => false, // Selection failure From a96b5431fe330616710077bf390877c4cf9fd8d5 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Thu, 26 Dec 2024 03:08:52 +0100 Subject: [PATCH 2/2] Link llvm issue for amdgpu --- configure.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.rs b/configure.rs index b702f75f..e20c717e 100644 --- a/configure.rs +++ b/configure.rs @@ -79,7 +79,7 @@ pub fn configure_f16_f128(target: &Target) { }; let f128_enabled = match target.arch.as_str() { - // Unsupported (libcall is not supported) + // Unsupported (libcall is not supported) "amdgpu" => false, // Unsupported "arm64ec" => false,