[libc-commits] [libc] [libc] Enable all supported math functions on the GPU (PR #102563)

LLVM Continuous Integration via libc-commits libc-commits at lists.llvm.org
Mon Aug 12 11:16:05 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-x86_64-debian-fullbuild-dbg` running on `libc-x86_64-debian-fullbuild` while building `libc` at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/179/builds/4050

Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSqrtTest.SpecialNumbers
[       OK ] LlvmLibcSqrtTest.SpecialNumbers (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[472/1083] Running unit test libc.test.src.math.smoke.sqrt_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSqrtTest.SpecialNumbers
[       OK ] LlvmLibcSqrtTest.SpecialNumbers (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[473/1083] Running unit test libc.test.src.math.smoke.dsubl_test.__unit__
FAILED: projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.dsubl_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.dsubl_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/math/smoke && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/math/smoke/libc.test.src.math.smoke.dsubl_test.__unit__.__build__
[==========] Running 4 tests from 1 test suite.
[ RUN      ] LlvmLibcSubTest.SpecialNumbers
[       OK ] LlvmLibcSubTest.SpecialNumbers (8 us)
[ RUN      ] LlvmLibcSubTest.InvalidOperations
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:50: FAILURE
      Expected: (func(inf, inf)) != (func(inf, inf))
      Which is: 0
To be equal to: true
      Which is: 1
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:50: FAILURE
      Expected: __llvm_libc_19_0_0_git::fputil::test_except((0x1 | 0x2 | 0x4 | 0x8 | 0x10)) & ((0x4) ? (0x4) : (0x1 | 0x2 | 0x4 | 0x8 | 0x10))
      Which is: 0
To be equal to: (0x4)
      Which is: 4
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:51: FAILURE
      Expected: (func(neg_inf, neg_inf)) != (func(neg_inf, neg_inf))
      Which is: 0
To be equal to: true
      Which is: 1
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:51: FAILURE
      Expected: __llvm_libc_19_0_0_git::fputil::test_except((0x1 | 0x2 | 0x4 | 0x8 | 0x10)) & ((0x4) ? (0x4) : (0x1 | 0x2 | 0x4 | 0x8 | 0x10))
      Which is: 0
To be equal to: (0x4)
      Which is: 4
[  FAILED  ] LlvmLibcSubTest.InvalidOperations
[ RUN      ] LlvmLibcSubTest.RangeErrors
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:59: FAILURE
Failed to match func(max_normal, neg_max_normal) against LIBC_NAMESPACE::testing::getMatcher< LIBC_NAMESPACE::testing::TestCond::EQ>(inf).
Expected floating point value: (+Infinity)
Actual floating point value: 0x0000000000000000 = (S: 0, E: 0x0000, M: 0x0000000000000000)
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:59: FAILURE
      Expected: __llvm_libc_19_0_0_git::fputil::test_except((0x1 | 0x2 | 0x4 | 0x8 | 0x10)) & ((0x8 | 0x2) ? (0x8 | 0x2) : (0x1 | 0x2 | 0x4 | 0x8 | 0x10))
      Which is: 2
To be equal to: (0x8 | 0x2)
      Which is: 10
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:60: FAILURE
      Expected: actual
Step 8 (libc-unit-tests) failure: libc-unit-tests (failure)
...
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSqrtTest.SpecialNumbers
[       OK ] LlvmLibcSqrtTest.SpecialNumbers (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[472/1083] Running unit test libc.test.src.math.smoke.sqrt_test.__unit__
[==========] Running 1 test from 1 test suite.
[ RUN      ] LlvmLibcSqrtTest.SpecialNumbers
[       OK ] LlvmLibcSqrtTest.SpecialNumbers (4 us)
Ran 1 tests.  PASS: 1  FAIL: 0
[473/1083] Running unit test libc.test.src.math.smoke.dsubl_test.__unit__
FAILED: projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.dsubl_test.__unit__ /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/math/smoke/CMakeFiles/libc.test.src.math.smoke.dsubl_test.__unit__ 
cd /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/math/smoke && /home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/build/projects/libc/test/src/math/smoke/libc.test.src.math.smoke.dsubl_test.__unit__.__build__
[==========] Running 4 tests from 1 test suite.
[ RUN      ] LlvmLibcSubTest.SpecialNumbers
[       OK ] LlvmLibcSubTest.SpecialNumbers (8 us)
[ RUN      ] LlvmLibcSubTest.InvalidOperations
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:50: FAILURE
      Expected: (func(inf, inf)) != (func(inf, inf))
      Which is: 0
To be equal to: true
      Which is: 1
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:50: FAILURE
      Expected: __llvm_libc_19_0_0_git::fputil::test_except((0x1 | 0x2 | 0x4 | 0x8 | 0x10)) & ((0x4) ? (0x4) : (0x1 | 0x2 | 0x4 | 0x8 | 0x10))
      Which is: 0
To be equal to: (0x4)
      Which is: 4
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:51: FAILURE
      Expected: (func(neg_inf, neg_inf)) != (func(neg_inf, neg_inf))
      Which is: 0
To be equal to: true
      Which is: 1
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:51: FAILURE
      Expected: __llvm_libc_19_0_0_git::fputil::test_except((0x1 | 0x2 | 0x4 | 0x8 | 0x10)) & ((0x4) ? (0x4) : (0x1 | 0x2 | 0x4 | 0x8 | 0x10))
      Which is: 0
To be equal to: (0x4)
      Which is: 4
[  FAILED  ] LlvmLibcSubTest.InvalidOperations
[ RUN      ] LlvmLibcSubTest.RangeErrors
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:59: FAILURE
Failed to match func(max_normal, neg_max_normal) against LIBC_NAMESPACE::testing::getMatcher< LIBC_NAMESPACE::testing::TestCond::EQ>(inf).
Expected floating point value: (+Infinity)
Actual floating point value: 0x0000000000000000 = (S: 0, E: 0x0000, M: 0x0000000000000000)
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:59: FAILURE
      Expected: __llvm_libc_19_0_0_git::fputil::test_except((0x1 | 0x2 | 0x4 | 0x8 | 0x10)) & ((0x8 | 0x2) ? (0x8 | 0x2) : (0x1 | 0x2 | 0x4 | 0x8 | 0x10))
      Which is: 2
To be equal to: (0x8 | 0x2)
      Which is: 10
/home/llvm-libc-buildbot/buildbot-worker/libc-x86_64-debian-fullbuild/libc-x86_64-debian-fullbuild-dbg/llvm-project/libc/test/src/math/smoke/SubTest.h:60: FAILURE
      Expected: actual

```

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


More information about the libc-commits mailing list