Skip to content

Commit

Permalink
moving dpbench workloads to sub-directory
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshyoga committed Feb 21, 2024
1 parent 6120680 commit aa1cc4e
Show file tree
Hide file tree
Showing 146 changed files with 24 additions and 19 deletions.
19 changes: 1 addition & 18 deletions dpbench/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,5 @@
#
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(black_scholes)
add_subdirectory(pairwise_distance)
add_subdirectory(l2_norm)
add_subdirectory(rambo)
add_subdirectory(kmeans)
add_subdirectory(knn)
add_subdirectory(gpairs)
add_subdirectory(dbscan)
add_subdirectory(main)
add_subdirectory(rodinia)

# generate dpcpp version into config
set(FILE ${CMAKE_SOURCE_DIR}/dpbench/configs/framework_info/dpcpp.toml)
set(WRITE_VERSION "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")

file(READ ${FILE} FILE_CONTENTS)
string(REGEX REPLACE "dpcpp_version = \"[^\"]*\""
"dpcpp_version = \"${WRITE_VERSION}\"" FILE_CONTENTS "${FILE_CONTENTS}")

file(WRITE ${FILE} "${FILE_CONTENTS}")
22 changes: 22 additions & 0 deletions dpbench/benchmarks/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2022 - 2023 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(black_scholes)
add_subdirectory(pairwise_distance)
add_subdirectory(l2_norm)
add_subdirectory(rambo)
add_subdirectory(kmeans)
add_subdirectory(knn)
add_subdirectory(gpairs)
add_subdirectory(dbscan)

# generate dpcpp version into config
set(FILE ${CMAKE_SOURCE_DIR}/dpbench/configs/framework_info/dpcpp.toml)
set(WRITE_VERSION "${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")

file(READ ${FILE} FILE_CONTENTS)
string(REGEX REPLACE "dpcpp_version = \"[^\"]*\""
"dpcpp_version = \"${WRITE_VERSION}\"" FILE_CONTENTS "${FILE_CONTENTS}")

file(WRITE ${FILE} "${FILE_CONTENTS}")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dpbench/config/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def read_configs( # noqa: C901: TODO: move modules into config
benchmark_configs_path=os.path.join(
dirname, "../configs/bench_info"
),
benchmarks_module="dpbench.benchmarks",
benchmarks_module="dpbench.benchmarks.main",
framework_configs_path=os.path.join(
dirname, "../configs/framework_info"
),
Expand Down

0 comments on commit aa1cc4e

Please sign in to comment.