CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
79 lines
2.5 KiB
CMake
79 lines
2.5 KiB
CMake
# Copyright (c) 2020-2025 Intel Corporation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
cmake_minimum_required(VERSION 3.5.0...3.31.3)
|
|
|
|
project(tbb_examples CXX)
|
|
|
|
add_custom_target(build_examples)
|
|
add_custom_target(run_examples)
|
|
add_dependencies(run_examples build_examples)
|
|
|
|
add_custom_target(light_test_examples)
|
|
add_dependencies(light_test_examples build_examples)
|
|
|
|
macro(tbb_add_example subdir name)
|
|
add_subdirectory(${subdir}/${name})
|
|
add_dependencies(build_examples ${name})
|
|
add_dependencies(run_examples run_${name})
|
|
if (TARGET light_test_${name})
|
|
add_dependencies(light_test_examples light_test_${name})
|
|
else()
|
|
add_dependencies(light_test_examples run_${name})
|
|
endif()
|
|
endmacro()
|
|
|
|
tbb_add_example(concurrent_hash_map count_strings)
|
|
tbb_add_example(concurrent_priority_queue shortpath)
|
|
|
|
tbb_add_example(getting_started sub_string_finder)
|
|
|
|
tbb_add_example(graph binpack)
|
|
|
|
# TODO: Consider using FindMKL module
|
|
find_library(MKL_INTEL_LP64_LIB mkl_intel_lp64 PATHS ENV LIBRARY_PATH)
|
|
find_library(MKL_SEQUENTIAL_LIB mkl_sequential PATHS ENV LIBRARY_PATH)
|
|
find_library(MKL_CORE_LIB mkl_core PATHS ENV LIBRARY_PATH)
|
|
if(MKL_INTEL_LP64_LIB AND MKL_SEQUENTIAL_LIB AND MKL_CORE_LIB)
|
|
tbb_add_example(graph cholesky)
|
|
else()
|
|
message(WARNING "Intel(R) Math Kernel Library (Intel(R) MKL) libraries were not found, graph/cholesky example is excluded from the build.")
|
|
endif()
|
|
|
|
tbb_add_example(graph dining_philosophers)
|
|
tbb_add_example(graph fgbzip2)
|
|
tbb_add_example(graph logic_sim)
|
|
tbb_add_example(graph som)
|
|
|
|
tbb_add_example(parallel_for game_of_life)
|
|
tbb_add_example(parallel_for polygon_overlay)
|
|
tbb_add_example(parallel_for seismic)
|
|
tbb_add_example(parallel_for tachyon)
|
|
|
|
tbb_add_example(parallel_for_each parallel_preorder)
|
|
|
|
tbb_add_example(parallel_pipeline square)
|
|
|
|
tbb_add_example(parallel_reduce convex_hull)
|
|
tbb_add_example(parallel_reduce pi)
|
|
tbb_add_example(parallel_reduce primes)
|
|
|
|
tbb_add_example(task_arena fractal)
|
|
|
|
tbb_add_example(task_group sudoku)
|
|
|
|
tbb_add_example(test_all fibonacci)
|
|
|
|
tbb_add_example(migration recursive_fibonacci)
|