Skip to content

Fixing External/HecBench #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions External/HeCBench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set(CHOOSEN_LISTS)
set(NVIDIA
ace-omp/main.cpp
1

adam-omp/main.cpp
1
1
Expand All @@ -46,6 +46,7 @@ set(NVIDIA
1
1
)

set(NVIDIA_RUNTIME_REDLIST)
set(NVIDIA_COMPILER_REDLIST)

Expand Down Expand Up @@ -93,7 +94,7 @@ function (add_hecbench LANG)
continue ()
endif ()

list(FIND TEST_SUITE_HECBENCH_EXPECT_PASS "${_file}" _index)
list(FIND CHOOSEN_LISTS "${_file}" _index)
if (${_index} EQUAL -1)
message(STATUS "Skipping HeCBench Benchmark ${_file}")
continue ()
Expand All @@ -102,7 +103,7 @@ function (add_hecbench LANG)
set(_args_for_benchmark "")
set(IN_DIRECTORY FALSE)

foreach(item IN LISTS TEST_SUITE_HECBENCH_EXPECT_PASS)
foreach(item IN LISTS CHOOSEN_LISTS)
if(item MATCHES ".*-omp.*")

if(IN_DIRECTORY)
Expand Down Expand Up @@ -157,7 +158,6 @@ function (add_hecbench LANG)
message(STATUS "Makefile not found in ${BENCHMARK_DIR}.")
endif()


set(_includedir "${TEST_SUITE_HECBENCH_ROOT}/src/${CFLAGS_INCLUDE}" )

llvm_test_executable(${_name} "${TEST_SUITE_HECBENCH_ROOT}/src/${_file}")
Expand Down Expand Up @@ -229,7 +229,7 @@ if (TEST_SUITE_HECBENCH_ROOT AND NOT TEST_SUITE_BENCHMARKING_ONLY)
message(STATUS "Option is unrecognized (${list_option})")
endif()
endforeach()
list(REMOVE_DUPLICATES CHOOSEN_LISTS)
#list(REMOVE_DUPLICATES CHOOSEN_LISTS)

foreach (_lang in CXX)
if (CMAKE_${_lang}_COMPILER)
Expand Down