blob: 2fb2b9dc5f5804335bfc7c75e8cbcdf69f432449 [file] [log] [blame]
#ifndef SAMPLES_DEVICE_H
#define SAMPLES_DEVICE_H
#include "iree/base/api.h"
#include "iree/hal/api.h"
// Create the HAL device from the different backend targets.
// The HAL device is returned based on the implementation, and it must be
// released by the caller.
iree_status_t create_sample_device(iree_allocator_t host_allocator,
iree_hal_device_t** out_device);
#endif // SAMPLES_DEVICE_H