Skip to content

Commit

Permalink
trim white space
Browse files Browse the repository at this point in the history
  • Loading branch information
airMeng committed Jun 13, 2024
1 parent 224273e commit d342abc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ggml-sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11427,7 +11427,7 @@ static void ggml_sycl_mul_mat_vec_nc(ggml_backend_sycl_context & ctx, const ggml

SYCL_CHECK(ggml_sycl_set_device(ctx.device));
queue_ptr main_stream = ctx.stream();

void * src0_ddq = src0->data;
float * src1_ddf = (float *) src1->data;
float * dst_ddf = (float *) dst->data;
Expand Down
2 changes: 1 addition & 1 deletion ggml-sycl/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ struct ggml_sycl_pool_alloc {

// size is in number of elements
T * alloc(size_t size) {
GGML_ASSERT(pool != nullptr);
GGML_ASSERT(pool != nullptr);
GGML_ASSERT(ptr == nullptr);
ptr = (T *) pool->alloc(size * sizeof(T), &this->actual_size);
return ptr;
Expand Down
2 changes: 1 addition & 1 deletion ggml-sycl/dpct/helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ namespace dpct
sycl::backend backend2 = device2.get_backend();
// levelzero backends always come first
if(backend1 == sycl::backend::ext_oneapi_level_zero && backend2 != sycl::backend::ext_oneapi_level_zero) return true;
if(backend1 != sycl::backend::ext_oneapi_level_zero && backend2 == sycl::backend::ext_oneapi_level_zero) return false;
if(backend1 != sycl::backend::ext_oneapi_level_zero && backend2 == sycl::backend::ext_oneapi_level_zero) return false;
dpct::device_info prop1;
dpct::get_device_info(prop1, device1);
dpct::device_info prop2;
Expand Down

0 comments on commit d342abc

Please sign in to comment.