diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2023-05-14 11:25:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-14 11:25:15 +0200 |
commit | 221121b8407d5538cfed2f53973303f02810d856 (patch) | |
tree | 2040b81a268d10f8f51aa37af4d16bc3a9d74489 /test/routines/levelx/xhad.hpp | |
parent | 8d2f3540e9b2081c8550d3ffb4fd53e94ca7b54f (diff) |
Add Github Actions CI (#464)
This replaces the old Travis CI builds with Github Actions that test on both Ubuntu and MacOS, with both Clang and GCC. The builds on macOS also run the tests and some other programs, on Ubuntu OpenCL is not working at the moment. Because these tests use new/different compilers, I fixed a few warnings and errors along the way.
Diffstat (limited to 'test/routines/levelx/xhad.hpp')
-rw-r--r-- | test/routines/levelx/xhad.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/routines/levelx/xhad.hpp b/test/routines/levelx/xhad.hpp index 3e40de87..49629452 100644 --- a/test/routines/levelx/xhad.hpp +++ b/test/routines/levelx/xhad.hpp @@ -39,7 +39,8 @@ StatusCode RunReference<half>(const Arguments<half> &args, BuffersHost<half> &bu auto y_buffer2 = HalfToFloatBuffer(buffers_host.y_vec); auto c_buffer2 = HalfToFloatBuffer(buffers_host.c_mat); auto dummy = std::vector<float>(0); - auto buffers2 = BuffersHost<float>{x_buffer2, y_buffer2, dummy, dummy, c_buffer2, dummy, dummy}; + auto dummy_uint = std::vector<unsigned int>(0); + auto buffers2 = BuffersHost<float>{x_buffer2, y_buffer2, dummy, dummy, c_buffer2, dummy, dummy, dummy_uint}; auto args2 = Arguments<float>(); args2.x_size = args.x_size; args2.y_size = args.y_size; args2.c_size = args.c_size; args2.x_inc = args.x_inc; args2.y_inc = args.y_inc; args2.n = args.n; @@ -152,7 +153,7 @@ public: // Describes how to compute the indices of the result buffer static size_t ResultID1(const Arguments<T> &args) { return args.n; } static size_t ResultID2(const Arguments<T> &) { return 1; } // N/A for this routine - static size_t GetResultIndex(const Arguments<T> &args, const size_t id1, const size_t) { + static size_t GetResultIndex(const Arguments<T> &, const size_t id1, const size_t) { return id1; // * args.z_inc + args.z_offset; } |