livoxGen1: unmangle symbols, add .sizes
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
__kernel void collate(__global uchar* assembly, __global uchar* collation) {
|
||||
// Placeholder kernel - will be replaced with actual collation logic
|
||||
// Placeholder kernel - will be replaced with actual collation logic.
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
.section .rodata
|
||||
.global collateKernelStart
|
||||
.global collateKernelEnd
|
||||
.global collateKernelNBytes
|
||||
.type collateKernelStart, @object
|
||||
.type collateKernelEnd, @object
|
||||
.type collateKernelNBytes, @object
|
||||
|
||||
collateKernelStart:
|
||||
.incbin "collateDgrams.cl"
|
||||
.size collateKernelStart, . - collateKernelStart
|
||||
collateKernelEnd:
|
||||
|
||||
.section .data
|
||||
collateKernelNBytes:
|
||||
.long collateKernelEnd - collateKernelStart
|
||||
.size collateKernelNBytes, 4
|
||||
|
||||
.section .note.GNU-stack,"",@progbits
|
||||
|
||||
@@ -3,15 +3,16 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace smo {
|
||||
namespace stim_buff {
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// External symbols for collate kernel
|
||||
// External symbols for collate kernel (unmangled, not namespaced)
|
||||
extern const char collateKernelStart[];
|
||||
extern const char collateKernelEnd[];
|
||||
extern const uint32_t collateKernelNBytes;
|
||||
|
||||
} // namespace stim_buff
|
||||
} // namespace smo
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // _LIVOX_GEN1_OPENCL_KERNELS_H
|
||||
|
||||
Reference in New Issue
Block a user