From 5dbed56e38b155f3c154facaec7769758f13346b Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Sat, 8 Nov 2025 10:59:08 -0400 Subject: [PATCH] livoxG1: Make collateKernelNBytes a uint32_t for 32bit portability --- stimBuffApis/livoxGen1/openClKernels.cl.S | 2 +- stimBuffApis/livoxGen1/openClKernels.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stimBuffApis/livoxGen1/openClKernels.cl.S b/stimBuffApis/livoxGen1/openClKernels.cl.S index 87d50ee..d6d17a6 100644 --- a/stimBuffApis/livoxGen1/openClKernels.cl.S +++ b/stimBuffApis/livoxGen1/openClKernels.cl.S @@ -12,6 +12,6 @@ collateKernelEnd: .section .data collateKernelNBytes: - .quad collateKernelEnd - collateKernelStart + .long collateKernelEnd - collateKernelStart .section .note.GNU-stack,"",@progbits diff --git a/stimBuffApis/livoxGen1/openClKernels.h b/stimBuffApis/livoxGen1/openClKernels.h index 9dce67c..86fa595 100644 --- a/stimBuffApis/livoxGen1/openClKernels.h +++ b/stimBuffApis/livoxGen1/openClKernels.h @@ -1,7 +1,7 @@ #ifndef _LIVOX_GEN1_OPENCL_KERNELS_H #define _LIVOX_GEN1_OPENCL_KERNELS_H -#include +#include namespace smo { namespace stim_buff { @@ -9,7 +9,7 @@ namespace stim_buff { // External symbols for collate kernel extern const char collateKernelStart[]; extern const char collateKernelEnd[]; -extern const size_t collateKernelNBytes; +extern const uint32_t collateKernelNBytes; } // namespace stim_buff } // namespace smo