mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
7f61f0b015
commit
1963ae04b2
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue