OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
# Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
cmake_minimum_required(VERSION 3.14)
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 20)
endif()
if(NOT TARGET openvino::runtime)
find_package(OpenVINO REQUIRED)
if(MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
endif()
endif()
function(add_test)
set(target "test_${ARGV0}")
add_executable(${target} "src/${target}.cpp" "src/common.cpp" "src/system_memory_sampling.cpp" "src/gpu_memory_sampling.cpp")
target_link_libraries(${target} openvino::runtime)
target_compile_definitions(${target} PUBLIC TEST_NAME=${ARGV0})
install(TARGETS ${target} DESTINATION tests/memory_tests COMPONENT tests EXCLUDE_FROM_ALL)
endfunction()
add_test(inference_sync)
add_test(inference_async)
install(FILES tools/run_tests.py DESTINATION tests/memory_tests/tools COMPONENT tests EXCLUDE_FROM_ALL)