livoxG1: Add OpenCl kernels for collation

This commit is contained in:
2025-11-08 10:26:17 -04:00
parent b460c8b2d3
commit 9233f7fdc8
4 changed files with 48 additions and 0 deletions
+11
View File
@@ -37,12 +37,23 @@ if(ENABLE_STIMBUFFAPI_livoxGen1)
message(STATUS "Found OpenCL using pkg-config")
endif()
# Enable assembly language
enable_language(ASM)
add_library(livoxGen1 SHARED
livoxGen1.cpp
stagingBuffer.cpp
pcloudStimulusBuffer.cpp
ioUringAssemblyEngine.cpp
openClCollatingAndMeshingEngine.cpp
openClKernels.cl.S
)
# Set assembler working directory so .incbin can find the .cl file
# Also declare dependency on collateDgrams.cl
set_source_files_properties(openClKernels.cl.S PROPERTIES
COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
OBJECT_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/collateDgrams.cl"
)
target_include_directories(livoxGen1 PUBLIC