[libc-commits] [libc] b8f6443 - [libc] Add GPU config file using the new format (#66635)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 18 06:07:04 PDT 2023
Author: Joseph Huber
Date: 2023-09-18T08:06:59-05:00
New Revision: b8f64431eaf750941490f8fb155b597d618d71a7
URL: https://github.com/llvm/llvm-project/commit/b8f64431eaf750941490f8fb155b597d618d71a7
DIFF: https://github.com/llvm/llvm-project/commit/b8f64431eaf750941490f8fb155b597d618d71a7.diff
LOG: [libc] Add GPU config file using the new format (#66635)
Summary:
This patch copies a config file for the GPU similar to the
baremetal/embedded implementation. This will configure the
implementations of functions like `sprintf` and `snprintf` to be
compiled into more simple versions that can be run on the GPU. These
functions cannot be enabled yet as Vararg support hasn't landed, but it
will be used then.
Added:
libc/config/gpu/config.json
Modified:
Removed:
################################################################################
diff --git a/libc/config/gpu/config.json b/libc/config/gpu/config.json
new file mode 100644
index 000000000000000..53f232e31cc8a46
--- /dev/null
+++ b/libc/config/gpu/config.json
@@ -0,0 +1,16 @@
+{
+ "printf": {
+ "LIBC_CONF_PRINTF_DISABLE_FLOAT": {
+ "value": true
+ },
+ "LIBC_CONF_PRINTF_DISABLE_INDEX_MODE": {
+ "value": true
+ },
+ "LIBC_CONF_PRINTF_DISABLE_WRITE_INT": {
+ "value": true
+ },
+ "LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE": {
+ "value": false
+ }
+ }
+}
More information about the libc-commits
mailing list