minor update

This commit is contained in:
Blaise Tine 2024-04-09 22:20:52 -07:00
parent 7f61f0b015
commit 1963ae04b2
2 changed files with 5 additions and 5 deletions

View file

@ -25,15 +25,15 @@ install:
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0" ]; then
rm -rf $TOOLDIR;
mkdir -p $TOOLDIR;
pushd $HOME/build$XLEN;
cd $HOME/build$XLEN;
./ci/toolchain_install.sh --all;
popd;
echo "v0" > "$TOOLDIR/version.txt";
fi
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v1" ]; then
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v0" ]; then
cd $TRAVIS_BUILD_DIR;
make -C third_party > /dev/null;
cp -r third_party $HOME;
echo "v1" > "$HOME/third_party/version.txt";
echo "v0" > "$HOME/third_party/version.txt";
else
cp -r $HOME/third_party .;
fi

View file

@ -740,7 +740,7 @@ public:
auto c = (float*)dst;
for (uint32_t i = 0; i < n; ++i) {
auto ref = sin(a[i]) + cos(b[i]);
if (!almost_equal(c[i], ref)) {
if (!almost_equal_ulp(c[i], ref, 20)) {
std::cout << "error at result #" << i << ": expected=" << ref << ", actual=" << c[i] << ", a=" << a[i] << ", b=" << b[i] << std::endl;
++errors;
}