[libc-commits] [libc] [libc][gpu] Add fixed point compile options to GPUs' loaders. (PR #81820)
via libc-commits
libc-commits at lists.llvm.org
Wed Feb 14 20:44:45 PST 2024
https://github.com/lntue created https://github.com/llvm/llvm-project/pull/81820
None
>From 98132c45c85d531cf413c9dba3e1b2e0e6a2e641 Mon Sep 17 00:00:00 2001
From: Tue Ly <lntue.h at gmail.com>
Date: Thu, 15 Feb 2024 04:44:01 +0000
Subject: [PATCH] [libc][gpu] Add fixed point compile options to GPUs' loaders.
---
libc/utils/gpu/loader/nvptx/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libc/utils/gpu/loader/nvptx/CMakeLists.txt b/libc/utils/gpu/loader/nvptx/CMakeLists.txt
index 0c76c49fa30985..991ca4749ad39c 100644
--- a/libc/utils/gpu/loader/nvptx/CMakeLists.txt
+++ b/libc/utils/gpu/loader/nvptx/CMakeLists.txt
@@ -4,6 +4,9 @@ add_dependencies(nvptx_loader libc.src.__support.RPC.rpc)
if(NOT LLVM_ENABLE_RTTI)
target_compile_options(nvptx_loader PRIVATE -fno-rtti)
endif()
+if(LIBC_COMPILER_HAS_FIXED_POINT)
+ target_compile_options(amdhsa_loader PRIVATE "-ffixed-point")
+endif()
target_include_directories(nvptx_loader PRIVATE ${LLVM_INCLUDE_DIRS})
target_link_libraries(nvptx_loader
PRIVATE
More information about the libc-commits
mailing list