1
0
mirror of https://github.com/fumiama/base16384-sycl.git synced 2026-06-05 08:40:34 +08:00

optimize(test): move test kernels into test class

This commit is contained in:
源文雨
2025-10-09 16:08:09 +08:00
parent cbe9cda397
commit 24ea4ca7bd
6 changed files with 44 additions and 28 deletions

14
libs/test_kernels.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include <stdint.h>
#include <sycl/sycl.hpp>
#include "test.hpp"
SYCL_EXTERNAL uint8_t base16384::test::kernels_basic(uint8_t in) {
in *= in;
in %= 251;
in ^= in >> 2;
in += 17;
in *= 3;
return in ^ (in << 1);
}