Skip to content

Commit

Permalink
Refactor to only include used headers (#7562)
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre committed Nov 8, 2021
1 parent c9f309f commit bbb9eab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iree/samples/simple_embedding/device_embedded_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@
#include "iree/hal/local/sync_device.h"

// Compiled module embedded here to avoid file IO:
#if IREE_ARCH_ARM_32
#include "iree/samples/simple_embedding/simple_embedding_test_bytecode_module_dylib_arm_32_c.h"
#elif IREE_ARCH_ARM_64
#include "iree/samples/simple_embedding/simple_embedding_test_bytecode_module_dylib_arm_64_c.h"
#elif IREE_ARCH_RISCV_32
#include "iree/samples/simple_embedding/simple_embedding_test_bytecode_module_dylib_riscv_32_c.h"
#elif IREE_ARCH_RISCV_64
#include "iree/samples/simple_embedding/simple_embedding_test_bytecode_module_dylib_riscv_64_c.h"
#elif IREE_ARCH_X86_64
#include "iree/samples/simple_embedding/simple_embedding_test_bytecode_module_dylib_x86_64_c.h"
#endif

iree_status_t create_sample_device(iree_hal_device_t** device) {
// Set parameters for the device created in the next step.
Expand Down

0 comments on commit bbb9eab

Please sign in to comment.