livoxG1: Add OpenCl kernels for collation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user