openvino/docs/articles_en/assets/snippets/custom_kernels_api.cpp

22 lines
417 B
C++

#include "openvino/runtime/core.hpp"
#ifndef IN_OV_COMPONENT
# define IN_OV_COMPONENT
# define WAS_OV_LIBRARY_DEFINED
#endif
#ifdef WAS_OV_LIBRARY_DEFINED
# undef IN_OV_COMPONENT
# undef WAS_OV_LIBRARY_DEFINED
#endif
int main() {
//! [part0]
ov::Core core;
// Load GPU Extensions
core.set_property("GPU", {{ "CONFIG_FILE", "<path_to_the_xml_file>" }});
//! [part0]
return 0;
}