[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:45:12 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: None (lntue)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/81820.diff


1 Files Affected:

- (modified) libc/utils/gpu/loader/nvptx/CMakeLists.txt (+3) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/81820


More information about the libc-commits mailing list