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