diff options
Diffstat (limited to 'libc/config/gpu')
| -rw-r--r-- | libc/config/gpu/amdgpu/entrypoints.txt | 27 | ||||
| -rw-r--r-- | libc/config/gpu/config.json (renamed from libc/config/gpu/amdgpu/config.json) | 2 | ||||
| -rw-r--r-- | libc/config/gpu/nvptx/config.json | 45 | ||||
| -rw-r--r-- | libc/config/gpu/nvptx/entrypoints.txt | 27 |
4 files changed, 47 insertions, 54 deletions
diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt index 7b9ee44f5013..7e4b1ab6d253 100644 --- a/libc/config/gpu/amdgpu/entrypoints.txt +++ b/libc/config/gpu/amdgpu/entrypoints.txt @@ -631,8 +631,11 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.bf16sub libc.src.math.bf16subf libc.src.math.bf16subl + libc.src.math.canonicalizebf16 libc.src.math.ceilbf16 + libc.src.math.copysignbf16 libc.src.math.fabsbf16 + libc.src.math.fdimbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 libc.src.math.fmaximumbf16 @@ -644,25 +647,41 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fminimum_magbf16 libc.src.math.fminimum_mag_numbf16 libc.src.math.fminimum_numbf16 + libc.src.math.fmodbf16 + libc.src.math.frexpbf16 + libc.src.math.fromfpbf16 + libc.src.math.fromfpxbf16 + libc.src.math.getpayloadbf16 + libc.src.math.ilogbbf16 + libc.src.math.iscanonicalbf16 + libc.src.math.issignalingbf16 + libc.src.math.ldexpbf16 + libc.src.math.llogbbf16 libc.src.math.llrintbf16 libc.src.math.llroundbf16 + libc.src.math.logbbf16 libc.src.math.lrintbf16 libc.src.math.lroundbf16 - libc.src.math.fromfpbf16 - libc.src.math.fromfpxbf16 - libc.src.math.getpayloadbf16 + libc.src.math.modfbf16 libc.src.math.nanbf16 libc.src.math.nearbyintbf16 libc.src.math.nextafterbf16 libc.src.math.nextdownbf16 libc.src.math.nexttowardbf16 libc.src.math.nextupbf16 + libc.src.math.remainderbf16 + libc.src.math.remquobf16 + libc.src.math.rintbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 - libc.src.math.rintbf16 + libc.src.math.scalblnbf16 + libc.src.math.scalbnbf16 libc.src.math.setpayloadbf16 libc.src.math.setpayloadsigbf16 + libc.src.math.sqrtbf16 libc.src.math.truncbf16 + libc.src.math.totalorderbf16 + libc.src.math.totalordermagbf16 libc.src.math.ufromfpbf16 libc.src.math.ufromfpxbf16 ) diff --git a/libc/config/gpu/amdgpu/config.json b/libc/config/gpu/config.json index fa179b849dcf..434ee042953e 100644 --- a/libc/config/gpu/amdgpu/config.json +++ b/libc/config/gpu/config.json @@ -39,7 +39,7 @@ }, "math": { "LIBC_CONF_MATH_OPTIMIZATIONS": { - "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" + "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" } } } diff --git a/libc/config/gpu/nvptx/config.json b/libc/config/gpu/nvptx/config.json deleted file mode 100644 index fa179b849dcf..000000000000 --- a/libc/config/gpu/nvptx/config.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "errno": { - "LIBC_CONF_ERRNO_MODE": { - "value": "LIBC_ERRNO_MODE_SHARED" - } - }, - "threads": { - "LIBC_CONF_THREAD_MODE": { - "value": "LIBC_THREAD_MODE_SINGLE" - } - }, - "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 - }, - "LIBC_CONF_PRINTF_DISABLE_STRERROR": { - "value": true - }, - "LIBC_CONF_PRINTF_RUNTIME_DISPATCH": { - "value": false - } - }, - "scanf": { - "LIBC_CONF_SCANF_DISABLE_FLOAT": { - "value": true - }, - "LIBC_CONF_SCANF_DISABLE_INDEX_MODE": { - "value": true - } - }, - "math": { - "LIBC_CONF_MATH_OPTIMIZATIONS": { - "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)" - } - } -} diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt index 5b724a3bdeae..72a625728347 100644 --- a/libc/config/gpu/nvptx/entrypoints.txt +++ b/libc/config/gpu/nvptx/entrypoints.txt @@ -633,8 +633,11 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.bf16sub libc.src.math.bf16subf libc.src.math.bf16subl + libc.src.math.canonicalizebf16 libc.src.math.ceilbf16 + libc.src.math.copysignbf16 libc.src.math.fabsbf16 + libc.src.math.fdimbf16 libc.src.math.floorbf16 libc.src.math.fmaxbf16 libc.src.math.fmaximumbf16 @@ -646,25 +649,41 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS libc.src.math.fminimum_magbf16 libc.src.math.fminimum_mag_numbf16 libc.src.math.fminimum_numbf16 + libc.src.math.fmodbf16 + libc.src.math.frexpbf16 + libc.src.math.fromfpbf16 + libc.src.math.fromfpxbf16 + libc.src.math.getpayloadbf16 + libc.src.math.ilogbbf16 + libc.src.math.iscanonicalbf16 + libc.src.math.issignalingbf16 + libc.src.math.ldexpbf16 + libc.src.math.llogbbf16 libc.src.math.llrintbf16 libc.src.math.llroundbf16 + libc.src.math.logbbf16 libc.src.math.lrintbf16 libc.src.math.lroundbf16 - libc.src.math.fromfpbf16 - libc.src.math.fromfpxbf16 - libc.src.math.getpayloadbf16 + libc.src.math.modfbf16 libc.src.math.nanbf16 libc.src.math.nearbyintbf16 libc.src.math.nextafterbf16 libc.src.math.nextdownbf16 libc.src.math.nexttowardbf16 libc.src.math.nextupbf16 + libc.src.math.remainderbf16 + libc.src.math.remquobf16 + libc.src.math.rintbf16 libc.src.math.roundbf16 libc.src.math.roundevenbf16 - libc.src.math.rintbf16 + libc.src.math.scalblnbf16 + libc.src.math.scalbnbf16 libc.src.math.setpayloadbf16 libc.src.math.setpayloadsigbf16 + libc.src.math.sqrtbf16 libc.src.math.truncbf16 + libc.src.math.totalorderbf16 + libc.src.math.totalordermagbf16 libc.src.math.ufromfpbf16 libc.src.math.ufromfpxbf16 ) |
