sycl : fix wrong variable check by assert (llama/20903)
* fix wrong variable check by assert * use GGML api
This commit is contained in:
parent
9e4e4c2401
commit
f2a8e65ea7
|
|
@ -56,7 +56,7 @@ void ggml_sycl_add_id(ggml_backend_sycl_context& ctx, ggml_tensor* dst) {
|
||||||
float* dst_d = (float*)dst->data;
|
float* dst_d = (float*)dst->data;
|
||||||
|
|
||||||
const unsigned int max_work_group_size = ggml_sycl_info().max_work_group_sizes[ctx.device];
|
const unsigned int max_work_group_size = ggml_sycl_info().max_work_group_sizes[ctx.device];
|
||||||
assert(work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
|
GGML_ASSERT(max_work_group_size % (WARP_SIZE * WARP_SIZE) == 0);
|
||||||
|
|
||||||
int threads = std::min((unsigned int)ne00, max_work_group_size); // cols
|
int threads = std::min((unsigned int)ne00, max_work_group_size); // cols
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue