1
0
mirror of https://github.com/fumiama/gozel.git synced 2026-06-06 08:50:24 +08:00

fix(examples): some platform not support double

This commit is contained in:
源文雨
2026-03-25 17:20:16 +08:00
parent d86e2a59d5
commit 32ada81b80
5 changed files with 67 additions and 47 deletions

View File

@@ -1,7 +1,7 @@
#include <sycl/sycl.hpp>
extern "C" SYCL_EXTERNAL
void vector_add(double* a, double* b) {
void vector_add(float* a, float* b) {
auto item = sycl::ext::oneapi::this_work_item::get_nd_item<1>();
int idx = item.get_global_id(0);