src/runtime_src/core/common/api/xrt_xclbin.cpp
int
xrtXclbinUUID(xclDeviceHandle dhdl, xuid_t out)
{
  try {
    auto device = xrt_core::get_userpf_device(dhdl);
    auto uuid = device->get_xclbin_uuid();
    uuid_copy(out, uuid.get());
    return 0;
  }
  catch (const xrt_core::error& ex) {
    xrt_core::send_exception_message(ex.what());
    return ex.get();
  }
  catch (const std::exception& ex) {
    xrt_core::send_exception_message(ex.what());
    return -1;
  }
}
////////////////////////////////////////////////////////////////
// Legacy to be removed xrt_xclbin API implmentations (xrt_xclbin.h)
////////////////////////////////////////////////////////////////
Legacy to be removed xrt_xclbin API implmentations (xrt_xclbin.h)
Legacy to be removed xrt_xclbin API implmentations ( xrt_xclbin . h )
int
xrtXclbinUUID(xclDeviceHandle dhdl, xuid_t out)
{
  try {
    auto device = xrt_core::get_userpf_device(dhdl);
    auto uuid = device->get_xclbin_uuid();
    uuid_copy(out, uuid.get());
    return 0;
  }
  catch (const xrt_core::error& ex) {
    xrt_core::send_exception_message(ex.what());
    return ex.get();
  }
  catch (const std::exception& ex) {
    xrt_core::send_exception_message(ex.what());
    return -1;
  }
}
int xrtXclbinUUID ( xclDeviceHandle dhdl , xuid_t out ) { try { auto device = xrt_core :: get_userpf_device ( dhdl ) ; auto uuid = device -> get_xclbin_uuid ( ) ; uuid_copy ( out , uuid . get ( ) ) ; return 0 ; } catch ( const xrt_core :: error & ex ) { xrt_core :: send_exception_message ( ex . what ( ) ) ; return ex . get ( ) ; } catch ( const std :: exception & ex ) { xrt_core :: send_exception_message ( ex . what ( ) ) ; return -1 ; } }
Legacy to be removed xrt_xclbin API implmentations (xrt_xclbin.h)
Legacy to be removed xrt_xclbin API implmentations ( xrt_xclbin . h )