now runs on cuda

This commit is contained in:
Elias
2022-03-09 19:33:29 +00:00
parent d0fd43b897
commit 3ea6174583
8 changed files with 86 additions and 75 deletions

View File

@@ -18,11 +18,11 @@ list(APPEND _ARGS "-iree-hal-target-backends=cuda")
#list(APPEND _ARGS "-iree-hal-target-backends=vulkan-spirv")
list(APPEND _ARGS "${CMAKE_CURRENT_SOURCE_DIR}/simple_embedding_test.mlir")
list(APPEND _ARGS "-o")
list(APPEND _ARGS "simple_embedding_test_bytecode_module.vmfb")
list(APPEND _ARGS "simple_embedding_test_bytecode_module_cuda_c.vmfb")
# Translate MLIR file to VM bytecode module
add_custom_command(
OUTPUT "simple_embedding_test_bytecode_module.vmfb"
OUTPUT "simple_embedding_test_bytecode_module_cuda_c.vmfb"
COMMAND ${_TRANSLATE_TOOL_EXECUTABLE} ${_ARGS}
DEPENDS iree_tools_iree-translate
)
@@ -34,26 +34,26 @@ add_custom_command(
# Define arguments passed to generate_embed_data
set(_ARGS)
list(APPEND _ARGS "--output_header=simple_embedding_test_bytecode_module.h")
list(APPEND _ARGS "--output_impl=simple_embedding_test_bytecode_module.c")
list(APPEND _ARGS "--identifier=simple_embedding_test_bytecode_module")
list(APPEND _ARGS "--output_header=simple_embedding_test_bytecode_module_cuda_c.h")
list(APPEND _ARGS "--output_impl=simple_embedding_test_bytecode_module_cuda_c.c")
list(APPEND _ARGS "--identifier=simple_embedding_test_bytecode_module_cuda_c")
list(APPEND _ARGS "--flatten")
list(APPEND _ARGS "simple_embedding_test_bytecode_module.vmfb")
list(APPEND _ARGS "simple_embedding_test_bytecode_module_cuda_c.vmfb")
# Embed VM bytecode module into c source file
add_custom_command(
OUTPUT
"simple_embedding_test_bytecode_module.h"
"simple_embedding_test_bytecode_module.c"
"simple_embedding_test_bytecode_module_cuda_c.h"
"simple_embedding_test_bytecode_module_cuda_c.c"
COMMAND generate_embed_data ${_ARGS}
DEPENDS generate_embed_data simple_embedding_test_bytecode_module.vmfb
DEPENDS generate_embed_data simple_embedding_test_bytecode_module_cuda_c.vmfb
)
add_library(simple_embedding_test_bytecode_module_c STATIC "")
target_sources(simple_embedding_test_bytecode_module_c
add_library(simple_embedding_test_bytecode_module_cuda_c STATIC "")
target_sources(simple_embedding_test_bytecode_module_cuda_c
PRIVATE
simple_embedding_test_bytecode_module.c
simple_embedding_test_bytecode_module.h
simple_embedding_test_bytecode_module_cuda_c.c
simple_embedding_test_bytecode_module_cuda_c.h
)
set(SAMP lws-minimal-http-server-form-post-file)
@@ -68,10 +68,10 @@ if (requirements)
add_executable(${SAMP} ${SRCS})
if (websockets_shared)
target_link_libraries(${SAMP} websockets_shared ${LIBWEBSOCKETS_DEP_LIBS} simple_embedding_test_bytecode_module_c iree_base_base iree_hal_hal iree_hal_cuda_registration_registration iree_modules_hal_hal iree_vm_vm iree_vm_bytecode_module)
target_link_libraries(${SAMP} websockets_shared ${LIBWEBSOCKETS_DEP_LIBS} simple_embedding_test_bytecode_module_cuda_c iree_base_base iree_hal_hal iree_hal_cuda_registration_registration iree_modules_hal_hal iree_vm_vm iree_vm_bytecode_module)
add_dependencies(${SAMP} websockets_shared)
else()
target_link_libraries(${SAMP} websockets ${LIBWEBSOCKETS_DEP_LIBS} simple_embedding_test_bytecode_module_c iree_base_base iree_hal_hal iree_hal_cuda_registration_registration iree_modules_hal_hal iree_vm_vm iree_vm_bytecode_module)
target_link_libraries(${SAMP} websockets ${LIBWEBSOCKETS_DEP_LIBS} simple_embedding_test_bytecode_module_cuda_c iree_base_base iree_hal_hal iree_hal_cuda_registration_registration iree_modules_hal_hal iree_vm_vm iree_vm_bytecode_module)
endif()
else()
message("not requirements")

View File

@@ -230,10 +230,13 @@ void *run_module_thread()
int main(int argc, const char **argv)
{
pthread_t thread_id;
pthread_t t1, t2;
int i1, i2;
printf("Before Thread\n");
pthread_create(&thread_id, NULL, run_module_thread, NULL);
pthread_join(thread_id, NULL);
i1 = pthread_create(&t1, NULL, run_module_thread, NULL);
i2 = pthread_create(&t2, NULL, run_module_thread, NULL);
pthread_join(t1, NULL);
pthread_join(t2, NULL);
printf("After Thread\n");
struct lws_context_creation_info info;
struct lws_context *context;

View File

@@ -21,7 +21,7 @@
#include "iree/vm/bytecode_module.h"
#include "iree/hal/cuda/registration/driver_module.h"
#include "iree/samples/simple_embedding/simple_embedding_test_bytecode_module_cuda_c.h"
#include "simple_embedding_test_bytecode_module_cuda_c.h"
iree_status_t create_sample_device(iree_allocator_t host_allocator,
iree_hal_device_t** out_device) {
@@ -47,7 +47,7 @@ iree_status_t create_sample_device(iree_allocator_t host_allocator,
const iree_const_byte_span_t load_bytecode_module_data() {
const struct iree_file_toc_t* module_file_toc =
iree_samples_simple_embedding_test_module_cuda_create();
simple_embedding_test_bytecode_module_cuda_c_create();
return iree_make_const_byte_span(module_file_toc->data,
module_file_toc->size);
}
@@ -104,16 +104,24 @@ iree_status_t Run() {
IREE_RETURN_IF_ERROR(iree_hal_buffer_view_allocate_buffer(
iree_hal_device_allocator(device), shape, IREE_ARRAYSIZE(shape),
IREE_HAL_ELEMENT_TYPE_FLOAT_32, IREE_HAL_ENCODING_TYPE_DENSE_ROW_MAJOR,
IREE_HAL_MEMORY_TYPE_DEVICE_LOCAL | IREE_HAL_MEMORY_TYPE_HOST_VISIBLE,
IREE_HAL_BUFFER_USAGE_DISPATCH | IREE_HAL_BUFFER_USAGE_TRANSFER |
IREE_HAL_BUFFER_USAGE_MAPPING,
(iree_hal_buffer_params_t){
.type = IREE_HAL_MEMORY_TYPE_DEVICE_LOCAL |
IREE_HAL_MEMORY_TYPE_HOST_VISIBLE,
.usage = IREE_HAL_BUFFER_USAGE_DISPATCH |
IREE_HAL_BUFFER_USAGE_TRANSFER |
IREE_HAL_BUFFER_USAGE_MAPPING,
},
iree_make_const_byte_span(kFloat4, sizeof(kFloat4)), &arg0_buffer_view));
IREE_RETURN_IF_ERROR(iree_hal_buffer_view_allocate_buffer(
iree_hal_device_allocator(device), shape, IREE_ARRAYSIZE(shape),
IREE_HAL_ELEMENT_TYPE_FLOAT_32, IREE_HAL_ENCODING_TYPE_DENSE_ROW_MAJOR,
IREE_HAL_MEMORY_TYPE_DEVICE_LOCAL | IREE_HAL_MEMORY_TYPE_HOST_VISIBLE,
IREE_HAL_BUFFER_USAGE_DISPATCH | IREE_HAL_BUFFER_USAGE_TRANSFER |
IREE_HAL_BUFFER_USAGE_MAPPING,
(iree_hal_buffer_params_t){
.type = IREE_HAL_MEMORY_TYPE_DEVICE_LOCAL |
IREE_HAL_MEMORY_TYPE_HOST_VISIBLE,
.usage = IREE_HAL_BUFFER_USAGE_DISPATCH |
IREE_HAL_BUFFER_USAGE_TRANSFER |
IREE_HAL_BUFFER_USAGE_MAPPING,
},
iree_make_const_byte_span(kFloat2, sizeof(kFloat2)), &arg1_buffer_view));
// Setup call inputs with our buffers.

View File

@@ -1,46 +0,0 @@
#include <stddef.h>
#include <stdint.h>
#if !defined(IREE_DATA_ALIGNAS_PTR)
#if defined(_MSC_VER)
#define IREE_DATA_ALIGNAS_PTR __declspec(align(8))
#else
#include <stdalign.h>
#define IREE_DATA_ALIGNAS_PTR alignas(alignof(void*))
#endif // _MSC_VER
#endif // !IREE_DATA_ALIGNAS_PTR
#ifndef IREE_FILE_TOC
#define IREE_FILE_TOC
#if __cplusplus
extern "C" {
#endif // __cplusplus
typedef struct iree_file_toc_t {
const char* name; // the file's original name
const char* data; // beginning of the file
size_t size; // length of the file
} iree_file_toc_t;
#if __cplusplus
}
#endif // __cplusplus
#endif // IREE_FILE_TOC
IREE_DATA_ALIGNAS_PTR static uint8_t const file_0[] = {
16,0,0,0,73,82,69,69,0,0,0,0,0,0,0,0,98,236,255,255,36,0,0,0,228,2,0,0,12,3,0,0,84,3,0,0,204,2,0,0,88,3,0,0,152,11,0,0,176,11,0,0,16,0,0,0,6,0,0,0,109,111,100,117,108,101,0,0,168,236,255,255,12,0,0,0,16,0,0,0,32,0,0,0,4,0,0,0,2,2,1,0,4,0,0,0,44,2,0,0,24,2,0,0,12,2,0,0,0,0,0,0,2,0,0,0,204,0,0,0,4,0,0,0,2,237,255,255,4,0,0,0,23,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,10,0,0,0,2,0,0,0,17,0,0,0,2,0,0,0,24,0,0,0,2,0,0,0,27,0,0,0,2,0,0,0,38,0,0,0,2,0,0,0,45,0,0,0,2,0,0,0,52,0,0,0,2,0,0,0,72,0,0,0,2,0,0,0,79,0,0,0,2,0,0,0,114,0,0,0,2,0,0,0,123,0,0,0,2,0,0,0,130,0,0,0,2,0,0,0,156,0,0,0,2,0,0,0,167,0,0,0,2,0,0,0,182,0,0,0,2,0,0,0,193,0,0,0,2,0,0,0,200,0,0,0,2,0,0,0,230,0,0,0,2,0,0,0,238,0,0,0,2,0,0,0,246,0,0,0,2,0,0,0,1,1,0,0,3,0,0,0,198,237,255,255,4,0,0,0,37,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,1,0,0,0,14,0,0,0,2,0,0,0,21,0,0,0,1,0,0,0,28,0,0,0,1,0,0,0,35,0,0,0,2,0,0,0,42,0,0,0,2,0,0,0,49,0,0,0,2,0,0,0,56,0,0,0,2,0,0,0,63,0,0,0,2,0,0,0,70,0,0,0,2,0,0,0,73,0,0,0,2,0,0,0,80,0,0,0,2,0,0,0,87,0,0,0,2,0,0,0,94,0,0,0,2,0,0,0,105,0,0,0,2,0,0,0,116,0,0,0,1,0,0,0,123,0,0,0,1,0,0,0,154,0,0,0,1,0,0,0,166,0,0,0,1,0,0,0,180,0,0,0,1,0,0,0,194,0,0,0,1,0,0,0,216,0,0,0,1,0,0,0,248,0,0,0,1,0,0,0,6,1,0,0,1,0,0,0,28,1,0,0,2,0,0,0,48,1,0,0,2,0,0,0,66,1,0,0,2,0,0,0,78,1,0,0,2,0,0,0,94,1,0,0,2,0,0,0,144,1,0,0,2,0,0,0,166,1,0,0,2,0,0,0,184,1,0,0,2,0,0,0,196,1,0,0,2,0,0,0,210,1,0,0,1,0,0,0,240,1,0,0,1,0,0,0,246,1,0,0,2,0,0,0,206,238,255,255,1,0,0,0,224,238,255,255,28,0,0,0,1,0,0,0,1,0,0,0,240,238,255,255,12,0,0,0,3,0,0,0,8,0,0,0,77,0,0,0,47,85,115,101,114,115,47,110,111,100,108,97,98,115,47,68,111,99,117,109,101,110,116,115,47,105,114,101,101,45,119,114,97,112,112,101,114,47,105,114,101,101,45,119,114,97,112,112,101,114,47,115,105,109,112,108,101,95,101,109,98,101,100,100,105,110,103,95,116,101,115,116,46,109,108,105,114,0,0,0,102,239,255,255,4,0,0,0,2,0,0,0,10,0,0,0,148,8,0,0,116,8,0,0,88,8,0,0,52,8,0,0,16,8,0,0,228,7,0,0,200,7,0,0,168,7,0,0,128,7,0,0,100,7,0,0,18,0,0,0,20,7,0,0,196,6,0,0,96,6,0,0,0,6,0,0,152,5,0,0,56,5,0,0,224,4,0,0,124,4,0,0,44,4,0,0,224,3,0,0,120,3,0,0,8,3,0,0,160,2,0,0,48,2,0,0,216,1,0,0,116,1,0,0,12,1,0,0,160,0,0,0,2,0,0,0,76,0,0,0,24,0,0,0,4,0,0,0,56,8,0,0,44,8,0,0,32,8,0,0,20,8,0,0,248,239,255,255,32,0,0,0,8,0,0,0,1,0,0,0,52,240,255,255,4,0,0,0,4,0,0,0,48,118,95,118,0,0,0,0,6,0,0,0,95,95,105,110,105,116,0,0,58,240,255,255,56,0,0,0,4,0,0,0,52,240,255,255,24,0,0,0,32,0,0,0,4,0,0,0,5,0,0,0,48,114,114,95,114,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,
10,0,0,0,115,105,109,112,108,101,95,109,117,108,0,0,134,240,255,255,64,0,0,0,4,0,0,0,128,240,255,255,28,0,0,0,40,0,0,0,4,0,0,0,8,0,0,0,48,114,105,67,114,68,95,114,0,0,0,0,3,0,0,0,6,0,0,0,0,0,0,0,5,0,0,0,1,0,0,0,8,0,0,0,28,0,0,0,104,97,108,46,101,120,101,99,117,116,97,98,108,101,95,108,97,121,111,117,116,46,99,114,101,97,116,101,0,0,0,0,238,240,255,255,68,0,0,0,4,0,0,0,232,240,255,255,28,0,0,0,44,0,0,0,4,0,0,0,9,0,0,0,48,114,114,114,67,114,68,95,114,0,0,0,4,0,0,0,6,0,0,0,9,0,0,0,9,0,0,0,8,0,0,0,1,0,0,0,7,0,0,0,21,0,0,0,104,97,108,46,101,120,101,99,117,116,97,98,108,101,46,99,114,101,97,116,101,0,0,0,82,241,255,255,64,0,0,0,4,0,0,0,76,241,255,255,24,0,0,0,36,0,0,0,4,0,0,0,7,0,0,0,48,114,114,114,95,105,105,0,3,0,0,0,6,0,0,0,9,0,0,0,9,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,104,97,108,46,100,101,118,105,99,101,46,113,117,101,114,121,46,105,51,50,0,0,0,0,178,241,255,255,52,0,0,0,4,0,0,0,172,241,255,255,24,0,0,0,28,0,0,0,4,0,0,0,4,0,0,0,48,114,95,114,0,0,0,0,1,0,0,0,6,0,0,0,1,0,0,0,1,0,0,0,20,0,0,0,104,97,108,46,100,101,118,105,99,101,46,97,108,108,111,99,97,116,111,114,0,0,0,0,6,242,255,255,64,0,0,0,4,0,0,0,0,242,255,255,28,0,0,0,40,0,0,0,4,0,0,0,9,0,0,0,48,114,105,67,105,105,68,95,114,0,0,0,3,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,5,0,0,0,32,0,0,0,104,97,108,46,100,101,115,99,114,105,112,116,111,114,95,115,101,116,95,108,97,121,111,117,116,46,99,114,101,97,116,101,0,0,0,0,114,242,255,255,64,0,0,0,4,0,0,0,118,242,255,255,24,0,0,0,4,0,0,0,9,0,0,0,48,114,114,105,105,105,105,95,118,0,0,0,6,0,0,0,4,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,100,105,115,112,97,116,99,104,0,214,242,255,255,60,0,0,0,4,0,0,0,218,242,255,255,28,0,0,0,4,0,0,0,12,0,0,0,48,114,114,105,67,105,114,105,105,68,95,118,0,0,0,0,4,0,0,0,4,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,38,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,112,117,115,104,95,100,101,115,99,114,105,112,116,111,114,95,115,101,116,0,0,66,243,255,255,52,0,0,0,4,0,0,0,70,243,255,255,20,0,0,0,4,0,0,0,7,0,0,0,48,114,105,105,105,95,118,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,101,120,101,99,117,116,105,111,110,95,98,97,114,114,105,101,114,0,0,0,0,166,243,255,255,40,0,0,0,4,0,0,0,170,243,255,255,20,0,0,0,4,0,0,0,4,0,0,0,48,114,95,118,0,0,0,0,1,0,0,0,4,0,0,0,22,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,101,110,100,0,0,238,243,255,255,40,0,0,0,4,0,0,0,242,243,255,255,20,0,0,0,4,0,0,0,4,0,0,0,48,114,95,118,0,0,0,0,1,0,0,0,4,0,0,0,24,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,98,101,103,105,110,0,0,0,0,58,244,255,255,60,0,0,0,4,0,0,0,52,244,255,255,24,0,0,0,36,0,0,0,4,0,0,0,6,0,0,0,48,114,105,105,95,114,0,0,3,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,
4,0,0,0,25,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,99,114,101,97,116,101,0,0,0,154,244,255,255,52,0,0,0,4,0,0,0,148,244,255,255,24,0,0,0,28,0,0,0,4,0,0,0,4,0,0,0,48,114,95,114,0,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,22,0,0,0,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,46,98,117,102,102,101,114,0,0,238,244,255,255,60,0,0,0,4,0,0,0,242,244,255,255,24,0,0,0,4,0,0,0,10,0,0,0,48,114,114,105,105,67,105,68,95,118,0,0,5,0,0,0,3,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,46,97,115,115,101,114,116,0,0,74,245,255,255,68,0,0,0,4,0,0,0,68,245,255,255,28,0,0,0,44,0,0,0,4,0,0,0,9,0,0,0,48,114,105,105,67,105,68,95,114,0,0,0,4,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,3,0,0,0,22,0,0,0,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,46,99,114,101,97,116,101,0,0,174,245,255,255,64,0,0,0,4,0,0,0,178,245,255,255,24,0,0,0,4,0,0,0,9,0,0,0,48,114,114,114,105,105,105,95,118,0,0,0,6,0,0,0,2,0,0,0,9,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,104,97,108,46,98,117,102,102,101,114,46,97,115,115,101,114,116,0,0,0,10,246,255,255,64,0,0,0,4,0,0,0,4,246,255,255,24,0,0,0,40,0,0,0,4,0,0,0,7,0,0,0,48,114,105,105,105,95,114,0,4,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,22,0,0,0,104,97,108,46,97,108,108,111,99,97,116,111,114,46,97,108,108,111,99,97,116,101,0,0,106,246,255,255,44,0,0,0,4,0,0,0,110,246,255,255,20,0,0,0,4,0,0,0,5,0,0,0,48,114,114,95,118,0,0,0,2,0,0,0,6,0,0,0,4,0,0,0,22,0,0,0,104,97,108,46,101,120,46,115,117,98,109,105,116,95,97,110,100,95,119,97,105,116,0,0,182,246,255,255,40,0,0,0,4,0,0,0,204,246,255,255,20,0,0,0,4,0,0,0,4,0,0,0,48,118,95,114,0,0,0,0,1,0,0,0,6,0,0,0,20,0,0,0,104,97,108,46,101,120,46,115,104,97,114,101,100,95,100,101,118,105,99,101,0,0,0,0,14,247,255,255,4,0,0,0,10,0,0,0,33,118,109,46,98,117,102,102,101,114,0,0,38,247,255,255,4,0,0,0,22,0,0,0,33,104,97,108,46,101,120,101,99,117,116,97,98,108,101,95,108,97,121,111,117,116,0,0,74,247,255,255,4,0,0,0,15,0,0,0,33,104,97,108,46,101,120,101,99,117,116,97,98,108,101,0,102,247,255,255,4,0,0,0,11,0,0,0,33,104,97,108,46,100,101,118,105,99,101,0,126,247,255,255,4,0,0,0,26,0,0,0,33,104,97,108,46,100,101,115,99,114,105,112,116,111,114,95,115,101,116,95,108,97,121,111,117,116,0,0,166,247,255,255,4,0,0,0,19,0,0,0,33,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,0,198,247,255,255,4,0,0,0,16,0,0,0,33,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,0,0,0,0,230,247,255,255,4,0,0,0,11,0,0,0,33,104,97,108,46,98,117,102,102,101,114,0,254,247,255,255,4,0,0,0,14,0,0,0,33,104,97,108,46,97,108,108,111,99,97,116,111,114,0,0,26,248,255,255,4,0,0,0,3,0,0,0,105,51,50,0,52,248,255,255,188,7,0,0,60,248,255,255,160,7,0,0,68,248,255,255,124,7,0,0,76,248,255,255,92,3,0,0,2,0,0,0,0,0,0,0,48,2,0,0,14,0,7,0,48,2,0,0,8,1,0,0,6,0,4,0,56,3,0,0,9,4,0,0,0,0,0,9,32,0,0,33,1,0,9,1,0,0,0,2,0,9,16,0,0,0,3,0,
9,10,0,0,0,4,0,9,50,0,0,0,5,0,9,14,0,0,0,6,0,9,17,0,0,0,7,0,9,3,0,0,0,8,0,9,2,0,0,0,9,0,8,10,0,9,28,0,0,0,11,0,9,13,0,0,0,12,0,0,0,0,0,0,13,0,4,0,0,0,0,8,0,0,0,2,128,4,1,0,0,0,7,0,0,0,3,128,11,3,0,0,0,4,128,83,5,0,0,128,5,0,255,255,255,255,255,255,255,255,1,0,5,0,0,128,4,128,1,0,2,0,0,0,0,0,82,0,0,0,128,0,0,0,1,0,5,128,82,6,0,0,128,0,1,0,0,192,1,0,0,128,82,14,0,0,128,0,1,0,5,128,1,0,6,128,82,3,0,0,128,0,6,0,0,128,4,128,6,128,3,0,3,0,4,0,0,0,83,5,0,0,128,0,5,0,255,255,255,255,255,255,255,255,1,0,5,0,1,128,4,128,1,0,2,0,0,0,0,0,82,6,0,0,128,0,1,0,1,192,1,0,1,128,82,3,0,0,128,0,6,0,1,128,4,192,6,128,3,0,3,0,4,0,0,0,82,2,0,0,128,0,4,0,6,192,5,0,6,0,3,0,1,0,4,128,82,7,0,0,128,0,3,0,5,128,7,0,8,0,1,0,6,128,82,8,0,0,128,0,1,0,6,128,0,0,81,13,0,94,1,0,0,0,0,0,246,1,0,0,0,0,83,11,0,0,128,0,4,0,255,255,255,255,255,255,3,0,15,0,6,128,2,192,10,0,10,0,0,192,10,0,3,0,2,0,1,192,10,0,3,0,9,0,4,128,10,0,3,0,0,0,82,12,0,0,128,0,6,0,6,128,3,192,10,0,2,0,2,0,2,0,0,0,82,10,0,0,128,0,4,0,6,128,11,0,12,0,10,0,0,0,82,9,0,0,128,0,1,0,6,128,0,0,82,1,0,0,128,0,2,0,5,192,6,192,0,0,83,4,0,0,128,0,4,0,255,255,255,255,255,255,1,0,4,0,4,192,1,0,2,0,0,0,1,0,0,128,84,0,1,0,0,192,85,9,0,50,0,100,101,118,105,99,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,105,110,32,116,104,101,32,99,111,109,112,105,108,101,100,32,99,111,110,102,105,103,117,114,97,116,105,111,110,0,0,0,9,1,0,0,0,0,0,8,1,0,9,2,0,0,0,2,0,9,7,0,0,0,3,0,10,0,128,82,0,0,0,128,0,0,1,0,1,128,11,1,0,0,0,2,128,11,2,0,0,0,3,128,82,15,0,0,128,0,3,0,1,128,2,192,3,128,2,0,4,0,5,0,49,5,0,0,0,5,0,83,13,0,0,128,3,0,255,255,255,255,3,0,8,0,1,128,0,0,1,0,3,0,0,0,3,0,2,0,3,0,1,0,2,128,30,4,0,5,0,1,0,0,0,1,0,0,0,0,0,0,83,17,0,0,128,0,3,0,255,255,255,255,1,0,3,0,1,128,1,0,2,192,1,0,2,128,5,0,0,0,0,8,0,0,0,2,192,81,0,0,182,0,0,0,0,0,238,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,128,11,0,0,0,0,2,128,83,16,0,0,128,0,4,0,255,255,255,255,255,255,1,0,4,0,1,192,3,192,2,192,0,192,1,0,0,128,80,246,0,0,0,0,0,0,80,246,0,0,0,0,0,0,5,1,0,0,0,7,0,0,0,0,192,84,0,0,0,0,0,0,10,4,0,0,8,0,0,0,73,82,69,69,22,252,255,255,24,0,0,0,200,1,0,0,216,1,0,0,180,2,0,0,192,2,0,0,16,0,0,0,6,0,0,0,109,111,100,117,108,101,0,0,80,252,255,255,12,0,0,0,16,0,0,0,28,0,0,0,3,0,0,0,2,2,1,0,3,0,0,0,40,1,0,0,20,1,0,0,8,1,0,0,1,0,0,0,4,0,0,0,152,252,255,255,4,0,0,0,30,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,14,0,0,0,1,0,0,0,17,0,0,0,1,0,0,0,24,0,0,0,1,0,0,0,35,0,0,0,1,0,0,0,46,0,0,0,2,0,0,0,57,0,0,0,2,0,0,0,64,0,0,0,2,0,0,0,71,0,0,0,2,0,0,0,78,0,0,0,2,0,0,0,85,0,0,0,2,0,0,0,92,0,0,0,2,0,0,0,99,0,0,0,2,0,0,0,106,0,0,0,
2,0,0,0,114,0,0,0,2,0,0,0,121,0,0,0,2,0,0,0,136,0,0,0,2,0,0,0,143,0,0,0,2,0,0,0,150,0,0,0,2,0,0,0,157,0,0,0,2,0,0,0,164,0,0,0,2,0,0,0,171,0,0,0,2,0,0,0,178,0,0,0,2,0,0,0,186,0,0,0,2,0,0,0,194,0,0,0,2,0,0,0,202,0,0,0,2,0,0,0,210,0,0,0,2,0,0,0,217,0,0,0,2,0,0,0,224,0,0,0,2,0,0,0,114,253,255,255,1,0,0,0,132,253,255,255,28,0,0,0,1,0,0,0,1,0,0,0,148,253,255,255,12,0,0,0,3,0,0,0,8,0,0,0,77,0,0,0,47,85,115,101,114,115,47,110,111,100,108,97,98,115,47,68,111,99,117,109,101,110,116,115,47,105,114,101,101,45,119,114,97,112,112,101,114,47,105,114,101,101,45,119,114,97,112,112,101,114,47,115,105,109,112,108,101,95,101,109,98,101,100,100,105,110,103,95,116,101,115,116,46,109,108,105,114,0,0,0,4,0,0,0,224,0,0,0,204,0,0,0,176,0,0,0,136,0,0,0,1,0,0,0,4,0,0,0,28,254,255,255,92,0,0,0,4,0,0,0,50,254,255,255,28,0,0,0,4,0,0,0,15,0,0,0,48,114,114,114,105,105,105,105,105,105,105,105,105,95,118,0,12,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,21,0,0,0,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,0,0,0,168,254,255,255,4,0,0,0,20,0,0,0,33,118,109,46,108,105,115,116,60,33,118,109,46,98,117,102,102,101,114,62,0,0,0,0,204,254,255,255,4,0,0,0,10,0,0,0,33,118,109,46,98,117,102,102,101,114,0,0,228,254,255,255,4,0,0,0,3,0,0,0,105,51,50,0,244,254,255,255,4,0,0,0,3,0,0,0,102,51,50,0,1,0,0,0,0,0,0,0,232,0,0,0,9,0,3,0,232,0,0,0,9,4,0,0,0,1,0,9,2,0,0,0,2,0,8,3,0,9,1,0,0,0,4,0,22,2,128,3,0,2,0,0,0,0,128,22,2,128,4,0,2,0,0,0,1,128,22,2,192,2,0,2,0,0,0,2,128,36,0,0,1,0,0,0,36,6,0,1,0,2,0,35,1,0,0,0,5,0,35,2,0,4,0,6,0,34,5,0,6,0,5,0,37,5,0,2,0,5,0,36,5,0,1,0,5,0,80,114,0,0,0,0,0,0,66,3,0,5,0,6,0,81,6,0,136,0,0,0,0,0,224,0,0,0,0,0,39,3,0,1,0,6,0,37,3,0,1,0,7,0,36,7,0,2,0,7,0,34,7,0,0,0,7,0,34,6,0,7,0,6,0,36,6,0,1,0,6,0,225,176,0,128,6,0,7,0,225,176,1,128,6,0,8,0,225,36,7,0,8,0,7,0,225,177,2,128,6,0,7,0,34,3,0,4,0,3,0,80,114,0,0,0,0,0,84,0,0,0,0,0,0,0,6,0,8,0,4,0,10,0,12,0,4,0,0,0,8,0,8,0,12,0,4,0,8,0,10,0,16,0,4,0,8,0,12,0,8,0,8,0,0,0,4,0,24,0,28,0,4,0,8,0,0,0,12,0,0,0,0,0,0,0,16,0,20,0,24,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,104,97,108,46,101,120,101,99,117,116,97,98,108,101,46,102,111,114,109,97,116,0,0,0,16,0,0,0,118,109,118,120,45,98,121,116,101,99,111,100,101,45,102,98,6,0,0,0,116,101,110,115,111,114,0,0,10,0,8,0,0,0,0,0,4,0,6,0,8,0,4,0,10,0,12,0,0,0,4,0,8,0,8,0,12,0,4,0,8,0,10,0,12,0,4,0,0,0,8,0,10,0,16,0,4,0,8,0,12,0,8,0,8,0,0,0,4,0,24,0,40,0,4,0,8,0,12,0,16,0,24,0,0,0,20,0,28,0,32,0,36,0,
0,
};
static const struct iree_file_toc_t toc[] = {
{
"simple_embedding_test_bytecode_module.vmfb",
(const char*)file_0,
sizeof(file_0) - 1
},
{NULL, NULL, 0},
};
const struct iree_file_toc_t* simple_embedding_test_bytecode_module_create() {
return &toc[0];
}

View File

@@ -0,0 +1,47 @@
#include <stddef.h>
#include <stdint.h>
#if !defined(IREE_DATA_ALIGNAS_PTR)
#if defined(_MSC_VER)
#define IREE_DATA_ALIGNAS_PTR __declspec(align(8))
#else
#include <stdalign.h>
#define IREE_DATA_ALIGNAS_PTR alignas(alignof(void*))
#endif // _MSC_VER
#endif // !IREE_DATA_ALIGNAS_PTR
#ifndef IREE_FILE_TOC
#define IREE_FILE_TOC
#if __cplusplus
extern "C" {
#endif // __cplusplus
typedef struct iree_file_toc_t {
const char* name; // the file's original name
const char* data; // beginning of the file
size_t size; // length of the file
} iree_file_toc_t;
#if __cplusplus
}
#endif // __cplusplus
#endif // IREE_FILE_TOC
IREE_DATA_ALIGNAS_PTR static uint8_t const file_0[] = {
8,0,0,0,73,82,69,69,186,235,255,255,36,0,0,0,204,2,0,0,244,2,0,0,60,3,0,0,180,2,0,0,64,3,0,0,128,11,0,0,152,11,0,0,16,0,0,0,6,0,0,0,109,111,100,117,108,101,0,0,0,236,255,255,12,0,0,0,16,0,0,0,32,0,0,0,4,0,0,0,2,2,1,0,4,0,0,0,44,2,0,0,24,2,0,0,12,2,0,0,0,0,0,0,2,0,0,0,204,0,0,0,4,0,0,0,90,236,255,255,4,0,0,0,23,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,10,0,0,0,2,0,0,0,17,0,0,0,2,0,0,0,24,0,0,0,2,0,0,0,27,0,0,0,2,0,0,0,38,0,0,0,2,0,0,0,45,0,0,0,2,0,0,0,52,0,0,0,2,0,0,0,72,0,0,0,2,0,0,0,79,0,0,0,2,0,0,0,114,0,0,0,2,0,0,0,123,0,0,0,2,0,0,0,130,0,0,0,2,0,0,0,156,0,0,0,2,0,0,0,167,0,0,0,2,0,0,0,182,0,0,0,2,0,0,0,193,0,0,0,2,0,0,0,200,0,0,0,2,0,0,0,230,0,0,0,2,0,0,0,238,0,0,0,2,0,0,0,246,0,0,0,2,0,0,0,1,1,0,0,3,0,0,0,30,237,255,255,4,0,0,0,37,0,0,0,0,0,0,0,2,0,0,0,7,0,0,0,1,0,0,0,14,0,0,0,2,0,0,0,21,0,0,0,1,0,0,0,28,0,0,0,1,0,0,0,35,0,0,0,2,0,0,0,42,0,0,0,2,0,0,0,49,0,0,0,2,0,0,0,56,0,0,0,2,0,0,0,63,0,0,0,2,0,0,0,70,0,0,0,2,0,0,0,73,0,0,0,2,0,0,0,80,0,0,0,2,0,0,0,87,0,0,0,2,0,0,0,94,0,0,0,2,0,0,0,105,0,0,0,2,0,0,0,116,0,0,0,1,0,0,0,123,0,0,0,1,0,0,0,154,0,0,0,1,0,0,0,166,0,0,0,1,0,0,0,180,0,0,0,1,0,0,0,194,0,0,0,1,0,0,0,216,0,0,0,1,0,0,0,248,0,0,0,1,0,0,0,6,1,0,0,1,0,0,0,28,1,0,0,2,0,0,0,48,1,0,0,2,0,0,0,66,1,0,0,2,0,0,0,78,1,0,0,2,0,0,0,94,1,0,0,2,0,0,0,144,1,0,0,2,0,0,0,166,1,0,0,2,0,0,0,184,1,0,0,2,0,0,0,196,1,0,0,2,0,0,0,210,1,0,0,1,0,0,0,240,1,0,0,1,0,0,0,246,1,0,0,2,0,0,0,38,238,255,255,1,0,0,0,56,238,255,255,28,0,0,0,1,0,0,0,1,0,0,0,72,238,255,255,12,0,0,0,3,0,0,0,8,0,0,0,52,0,0,0,47,104,111,109,101,47,101,108,105,97,115,47,100,83,72,65,82,75,47,100,83,72,65,82,75,47,115,105,109,112,108,101,95,101,109,98,101,100,100,105,110,103,95,116,101,115,116,46,109,108,105,114,0,0,0,0,166,238,255,255,4,0,0,0,2,0,0,0,10,0,0,0,148,8,0,0,116,8,0,0,88,8,0,0,52,8,0,0,16,8,0,0,228,7,0,0,200,7,0,0,168,7,0,0,128,7,0,0,100,7,0,0,18,0,0,0,20,7,0,0,196,6,0,0,96,6,0,0,0,6,0,0,152,5,0,0,56,5,0,0,224,4,0,0,124,4,0,0,44,4,0,0,224,3,0,0,120,3,0,0,8,3,0,0,160,2,0,0,48,2,0,0,216,1,0,0,116,1,0,0,12,1,0,0,160,0,0,0,2,0,0,0,76,0,0,0,24,0,0,0,4,0,0,0,56,8,0,0,44,8,0,0,32,8,0,0,20,8,0,0,56,239,255,255,32,0,0,0,8,0,0,0,1,0,0,0,116,239,255,255,4,0,0,0,4,0,0,0,48,118,95,118,0,0,0,0,6,0,0,0,95,95,105,110,105,116,0,0,122,239,255,255,56,0,0,0,4,0,0,0,116,239,255,255,24,0,0,0,32,0,0,0,4,0,0,0,5,0,0,0,48,114,114,95,114,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,10,0,0,0,115,105,109,112,108,101,95,109,117,108,0,0,198,239,255,255,64,0,0,0,4,0,0,0,192,239,255,255,
28,0,0,0,40,0,0,0,4,0,0,0,8,0,0,0,48,114,105,67,114,68,95,114,0,0,0,0,3,0,0,0,6,0,0,0,0,0,0,0,5,0,0,0,1,0,0,0,8,0,0,0,28,0,0,0,104,97,108,46,101,120,101,99,117,116,97,98,108,101,95,108,97,121,111,117,116,46,99,114,101,97,116,101,0,0,0,0,46,240,255,255,68,0,0,0,4,0,0,0,40,240,255,255,28,0,0,0,44,0,0,0,4,0,0,0,9,0,0,0,48,114,114,114,67,114,68,95,114,0,0,0,4,0,0,0,6,0,0,0,9,0,0,0,9,0,0,0,8,0,0,0,1,0,0,0,7,0,0,0,21,0,0,0,104,97,108,46,101,120,101,99,117,116,97,98,108,101,46,99,114,101,97,116,101,0,0,0,146,240,255,255,64,0,0,0,4,0,0,0,140,240,255,255,24,0,0,0,36,0,0,0,4,0,0,0,7,0,0,0,48,114,114,114,95,105,105,0,3,0,0,0,6,0,0,0,9,0,0,0,9,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,104,97,108,46,100,101,118,105,99,101,46,113,117,101,114,121,46,105,51,50,0,0,0,0,242,240,255,255,52,0,0,0,4,0,0,0,236,240,255,255,24,0,0,0,28,0,0,0,4,0,0,0,4,0,0,0,48,114,95,114,0,0,0,0,1,0,0,0,6,0,0,0,1,0,0,0,1,0,0,0,20,0,0,0,104,97,108,46,100,101,118,105,99,101,46,97,108,108,111,99,97,116,111,114,0,0,0,0,70,241,255,255,64,0,0,0,4,0,0,0,64,241,255,255,28,0,0,0,40,0,0,0,4,0,0,0,9,0,0,0,48,114,105,67,105,105,68,95,114,0,0,0,3,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,5,0,0,0,32,0,0,0,104,97,108,46,100,101,115,99,114,105,112,116,111,114,95,115,101,116,95,108,97,121,111,117,116,46,99,114,101,97,116,101,0,0,0,0,178,241,255,255,64,0,0,0,4,0,0,0,182,241,255,255,24,0,0,0,4,0,0,0,9,0,0,0,48,114,114,105,105,105,105,95,118,0,0,0,6,0,0,0,4,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,100,105,115,112,97,116,99,104,0,22,242,255,255,60,0,0,0,4,0,0,0,26,242,255,255,28,0,0,0,4,0,0,0,12,0,0,0,48,114,114,105,67,105,114,105,105,68,95,118,0,0,0,0,4,0,0,0,4,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,38,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,112,117,115,104,95,100,101,115,99,114,105,112,116,111,114,95,115,101,116,0,0,130,242,255,255,52,0,0,0,4,0,0,0,134,242,255,255,20,0,0,0,4,0,0,0,7,0,0,0,48,114,105,105,105,95,118,0,4,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,101,120,101,99,117,116,105,111,110,95,98,97,114,114,105,101,114,0,0,0,0,230,242,255,255,40,0,0,0,4,0,0,0,234,242,255,255,20,0,0,0,4,0,0,0,4,0,0,0,48,114,95,118,0,0,0,0,1,0,0,0,4,0,0,0,22,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,101,110,100,0,0,46,243,255,255,40,0,0,0,4,0,0,0,50,243,255,255,20,0,0,0,4,0,0,0,4,0,0,0,48,114,95,118,0,0,0,0,1,0,0,0,4,0,0,0,24,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,98,101,103,105,110,0,0,0,0,122,243,255,255,60,0,0,0,4,0,0,0,116,243,255,255,24,0,0,0,36,0,0,0,4,0,0,0,6,0,0,0,48,114,105,105,95,114,0,0,3,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,4,0,0,0,25,0,0,0,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,46,99,114,101,97,116,
101,0,0,0,218,243,255,255,52,0,0,0,4,0,0,0,212,243,255,255,24,0,0,0,28,0,0,0,4,0,0,0,4,0,0,0,48,114,95,114,0,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,2,0,0,0,22,0,0,0,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,46,98,117,102,102,101,114,0,0,46,244,255,255,60,0,0,0,4,0,0,0,50,244,255,255,24,0,0,0,4,0,0,0,10,0,0,0,48,114,114,105,105,67,105,68,95,118,0,0,5,0,0,0,3,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,0,0,0,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,46,97,115,115,101,114,116,0,0,138,244,255,255,68,0,0,0,4,0,0,0,132,244,255,255,28,0,0,0,44,0,0,0,4,0,0,0,9,0,0,0,48,114,105,105,67,105,68,95,114,0,0,0,4,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,3,0,0,0,22,0,0,0,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,46,99,114,101,97,116,101,0,0,238,244,255,255,64,0,0,0,4,0,0,0,242,244,255,255,24,0,0,0,4,0,0,0,9,0,0,0,48,114,114,114,105,105,105,95,118,0,0,0,6,0,0,0,2,0,0,0,9,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,104,97,108,46,98,117,102,102,101,114,46,97,115,115,101,114,116,0,0,0,74,245,255,255,64,0,0,0,4,0,0,0,68,245,255,255,24,0,0,0,40,0,0,0,4,0,0,0,7,0,0,0,48,114,105,105,105,95,114,0,4,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,22,0,0,0,104,97,108,46,97,108,108,111,99,97,116,111,114,46,97,108,108,111,99,97,116,101,0,0,170,245,255,255,44,0,0,0,4,0,0,0,174,245,255,255,20,0,0,0,4,0,0,0,5,0,0,0,48,114,114,95,118,0,0,0,2,0,0,0,6,0,0,0,4,0,0,0,22,0,0,0,104,97,108,46,101,120,46,115,117,98,109,105,116,95,97,110,100,95,119,97,105,116,0,0,246,245,255,255,40,0,0,0,4,0,0,0,12,246,255,255,20,0,0,0,4,0,0,0,4,0,0,0,48,118,95,114,0,0,0,0,1,0,0,0,6,0,0,0,20,0,0,0,104,97,108,46,101,120,46,115,104,97,114,101,100,95,100,101,118,105,99,101,0,0,0,0,78,246,255,255,4,0,0,0,10,0,0,0,33,118,109,46,98,117,102,102,101,114,0,0,102,246,255,255,4,0,0,0,22,0,0,0,33,104,97,108,46,101,120,101,99,117,116,97,98,108,101,95,108,97,121,111,117,116,0,0,138,246,255,255,4,0,0,0,15,0,0,0,33,104,97,108,46,101,120,101,99,117,116,97,98,108,101,0,166,246,255,255,4,0,0,0,11,0,0,0,33,104,97,108,46,100,101,118,105,99,101,0,190,246,255,255,4,0,0,0,26,0,0,0,33,104,97,108,46,100,101,115,99,114,105,112,116,111,114,95,115,101,116,95,108,97,121,111,117,116,0,0,230,246,255,255,4,0,0,0,19,0,0,0,33,104,97,108,46,99,111,109,109,97,110,100,95,98,117,102,102,101,114,0,6,247,255,255,4,0,0,0,16,0,0,0,33,104,97,108,46,98,117,102,102,101,114,95,118,105,101,119,0,0,0,0,38,247,255,255,4,0,0,0,11,0,0,0,33,104,97,108,46,98,117,102,102,101,114,0,62,247,255,255,4,0,0,0,14,0,0,0,33,104,97,108,46,97,108,108,111,99,97,116,111,114,0,0,90,247,255,255,4,0,0,0,3,0,0,0,105,51,50,0,116,247,255,255,124,8,0,0,124,247,255,255,96,8,0,0,132,247,255,255,60,8,0,0,140,247,255,255,92,3,0,0,2,0,0,0,0,0,0,0,48,2,0,0,14,0,7,0,48,2,0,0,8,1,0,0,6,0,4,0,56,3,0,0,9,4,0,0,0,0,0,9,32,0,0,33,1,0,9,1,0,0,0,2,0,9,16,0,0,0,3,0,9,10,0,0,0,4,0,9,50,0,0,0,5,0,9,14,0,0,0,6,0,9,17,0,0,0,7,0,9,3,0,0,
0,8,0,9,2,0,0,0,9,0,8,10,0,9,28,0,0,0,11,0,9,13,0,0,0,12,0,0,0,0,0,0,13,0,4,0,0,0,0,8,0,0,0,2,128,4,1,0,0,0,7,0,0,0,3,128,11,3,0,0,0,4,128,83,5,0,0,128,5,0,255,255,255,255,255,255,255,255,1,0,5,0,0,128,4,128,1,0,2,0,0,0,0,0,82,0,0,0,128,0,0,0,1,0,5,128,82,6,0,0,128,0,1,0,0,192,1,0,0,128,82,14,0,0,128,0,1,0,5,128,1,0,6,128,82,3,0,0,128,0,6,0,0,128,4,128,6,128,3,0,3,0,4,0,0,0,83,5,0,0,128,0,5,0,255,255,255,255,255,255,255,255,1,0,5,0,1,128,4,128,1,0,2,0,0,0,0,0,82,6,0,0,128,0,1,0,1,192,1,0,1,128,82,3,0,0,128,0,6,0,1,128,4,192,6,128,3,0,3,0,4,0,0,0,82,2,0,0,128,0,4,0,6,192,5,0,6,0,3,0,1,0,4,128,82,7,0,0,128,0,3,0,5,128,7,0,8,0,1,0,6,128,82,8,0,0,128,0,1,0,6,128,0,0,81,13,0,94,1,0,0,0,0,0,246,1,0,0,0,0,83,11,0,0,128,0,4,0,255,255,255,255,255,255,3,0,15,0,6,128,2,192,10,0,10,0,0,192,10,0,3,0,2,0,1,192,10,0,3,0,9,0,4,128,10,0,3,0,0,0,82,12,0,0,128,0,6,0,6,128,3,192,10,0,2,0,2,0,2,0,0,0,82,10,0,0,128,0,4,0,6,128,11,0,12,0,10,0,0,0,82,9,0,0,128,0,1,0,6,128,0,0,82,1,0,0,128,0,2,0,5,192,6,192,0,0,83,4,0,0,128,0,4,0,255,255,255,255,255,255,1,0,4,0,4,192,1,0,2,0,0,0,1,0,0,128,84,0,1,0,0,192,85,9,0,50,0,100,101,118,105,99,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,105,110,32,116,104,101,32,99,111,109,112,105,108,101,100,32,99,111,110,102,105,103,117,114,97,116,105,111,110,0,0,0,9,1,0,0,0,0,0,8,1,0,9,2,0,0,0,2,0,9,7,0,0,0,3,0,10,0,128,82,0,0,0,128,0,0,1,0,1,128,11,1,0,0,0,2,128,11,2,0,0,0,3,128,82,15,0,0,128,0,3,0,1,128,2,192,3,128,2,0,4,0,5,0,49,5,0,0,0,5,0,83,13,0,0,128,3,0,255,255,255,255,3,0,8,0,1,128,0,0,1,0,3,0,0,0,3,0,2,0,3,0,1,0,2,128,30,4,0,5,0,1,0,0,0,1,0,0,0,0,0,0,83,17,0,0,128,0,3,0,255,255,255,255,1,0,3,0,1,128,1,0,2,192,1,0,2,128,5,0,0,0,0,8,0,0,0,2,192,81,0,0,182,0,0,0,0,0,238,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,128,11,0,0,0,0,2,128,83,16,0,0,128,0,4,0,255,255,255,255,255,255,1,0,4,0,1,192,3,192,2,192,0,192,1,0,0,128,80,246,0,0,0,0,0,0,80,246,0,0,0,0,0,0,5,1,0,0,0,7,0,0,0,0,192,84,0,0,0,0,0,0,204,4,0,0,8,0,0,0,67,85,68,65,72,251,255,255,40,0,0,0,28,0,0,0,8,0,0,0,64,0,0,0,1,0,0,0,64,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,4,0,0,0,21,0,0,0,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,0,0,0,98,4,0,0,47,47,10,47,47,32,71,101,110,101,114,97,116,101,100,32,98,121,32,76,76,86,77,32,78,86,80,84,88,32,66,97,99,107,45,69,110,100,10,47,47,10,10,46,118,101,114,115,105,111,110,32,54,46,48,10,46,116,97,114,103,101,116,32,115,109,95,51,53,10,46,97,100,100,114,101,115,115,95,115,105,122,101,32,54,52,10,10,9,47,47,32,46,103,108,111,98,108,9,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,10,10,46,118,105,115,105,98,108,101,32,46,101,110,116,114,121,32,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,40,10,9,46,112,
97,114,97,109,32,46,117,54,52,32,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,95,112,97,114,97,109,95,48,44,10,9,46,112,97,114,97,109,32,46,117,54,52,32,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,95,112,97,114,97,109,95,49,44,10,9,46,112,97,114,97,109,32,46,117,54,52,32,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,95,112,97,114,97,109,95,50,10,41,10,123,10,9,46,114,101,103,32,46,112,114,101,100,32,9,37,112,60,50,62,59,10,9,46,114,101,103,32,46,98,51,50,32,9,37,114,60,51,62,59,10,9,46,114,101,103,32,46,102,51,50,32,9,37,102,60,52,62,59,10,9,46,114,101,103,32,46,98,54,52,32,9,37,114,100,60,49,54,62,59,10,10,9,109,111,118,46,117,51,50,32,9,37,114,49,44,32,37,99,116,97,105,100,46,120,59,10,9,109,117,108,46,119,105,100,101,46,117,51,50,32,9,37,114,100,49,48,44,32,37,114,49,44,32,54,52,59,10,9,109,111,118,46,117,54,52,32,9,37,114,100,49,49,44,32,52,59,10,9,115,117,98,46,115,54,52,32,9,37,114,100,49,50,44,32,37,114,100,49,49,44,32,37,114,100,49,48,59,10,9,109,111,118,46,117,51,50,32,9,37,114,50,44,32,37,116,105,100,46,120,59,10,9,99,118,116,46,117,54,52,46,117,51,50,32,9,37,114,100,49,51,44,32,37,114,50,59,10,9,115,101,116,112,46,108,101,46,115,54,52,32,9,37,112,49,44,32,37,114,100,49,50,44,32,37,114,100,49,51,59,10,9,64,37,112,49,32,98,114,97,32,9,76,66,66,48,95,50,59,10,9,108,100,46,112,97,114,97,109,46,117,54,52,32,9,37,114,100,52,44,32,91,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,95,112,97,114,97,109,95,48,93,59,10,9,108,100,46,112,97,114,97,109,46,117,54,52,32,9,37,114,100,53,44,32,91,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,95,112,97,114,97,109,95,50,93,59,10,9,99,118,116,97,46,116,111,46,103,108,111,98,97,108,46,117,54,52,32,9,37,114,100,54,44,32,37,114,100,53,59,10,9,108,100,46,112,97,114,97,109,46,117,54,52,32,9,37,114,100,55,44,32,91,115,105,109,112,108,101,95,109,117,108,95,100,105,115,112,97,116,99,104,95,48,95,112,97,114,97,109,95,49,93,59,10,9,99,118,116,97,46,116,111,46,103,108,111,98,97,108,46,117,54,52,32,9,37,114,100,56,44,32,37,114,100,55,59,10,9,99,118,116,97,46,116,111,46,103,108,111,98,97,108,46,117,54,52,32,9,37,114,100,57,44,32,37,114,100,52,59,10,9,97,100,100,46,115,54,52,32,9,37,114,100,49,52,44,32,37,114,100,49,48,44,32,37,114,100,49,51,59,10,9,115,104,108,46,98,54,52,32,9,37,114,100,49,53,44,32,37,114,100,49,52,44,32,50,59,10,9,97,100,100,46,115,54,52,32,9,37,114,100,49,44,32,37,114,100,57,44,32,37,114,100,49,53,59,10,9,97,100,100,46,115,54,52,32,9,37,114,100,50,44,32,37,114,100,56,44,32,37,114,100,49,53,59,10,9,97,100,100,46,115,54,52,32,9,37,114,100,51,44,32,37,114,100,54,44,32,37,114,100,49,53,59,10,9,108,100,46,103,108,111,98,97,108,46,102,51,50,32,9,37,102,49,44,32,91,37,114,100,49,93,59,10,9,108,100,46,103,108,111,98,97,108,46,102,51,50,32,9,37,102,50,44,32,91,37,114,100,50,93,59,10,9,109,117,108,46,114,110,46,102,51,50,32,9,37,102,51,44,32,37,102,49,44,32,37,102,50,59,10,9,115,116,46,103,108,111,98,97,108,46,102,51,50,32,9,91,37,114,100,51,93,44,32,37,102,51,59,10,76,66,66,48,95,50,58,10,9,114,101,116,59,10,10,125,10,0,0,12,0,20,0,4,0,12,0,8,0,16,0,0,0,0,0,0,0,0,0,21,0,0,0,104,97,108,46,101,120,101,99,117,116,97,98,108,101,46,102,111,114,109,97,116,0,0,0,13,0,0,0,99,117,100,97,45,110,118,112,116,120,45,102,
98,0,0,0,6,0,0,0,116,101,110,115,111,114,0,0,10,0,8,0,0,0,0,0,4,0,6,0,8,0,4,0,10,0,12,0,0,0,4,0,8,0,8,0,12,0,4,0,8,0,10,0,12,0,4,0,0,0,8,0,10,0,16,0,4,0,8,0,12,0,8,0,8,0,0,0,4,0,24,0,40,0,4,0,8,0,12,0,16,0,24,0,0,0,20,0,28,0,32,0,36,0,
0,
};
static const struct iree_file_toc_t toc[] = {
{
"simple_embedding_test_bytecode_module_cuda_c.vmfb",
(const char*)file_0,
sizeof(file_0) - 1
},
{NULL, NULL, 0},
};
const struct iree_file_toc_t* simple_embedding_test_bytecode_module_cuda_c_create() {
return &toc[0];
}

View File

@@ -1,6 +1,5 @@
#pragma once
#include <stddef.h>
#include "simple_embedding_test_bytecode_module.c"
#ifndef IREE_FILE_TOC
#define IREE_FILE_TOC
@@ -21,8 +20,8 @@ typedef struct iree_file_toc_t {
#if __cplusplus
extern "C" {
#endif // __cplusplus
const iree_file_toc_t* simple_embedding_test_bytecode_module_create();
static inline size_t simple_embedding_test_bytecode_module_size() {
const iree_file_toc_t* simple_embedding_test_bytecode_module_cuda_c_create();
static inline size_t simple_embedding_test_bytecode_module_cuda_c_size() {
return 1;
}
#if __cplusplus