[PATCH] D95633: [test-suite] SPEC2017 CPU CactuBSSN floating point tests.
Nichols A. Romero via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 20:22:07 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rT3a39afc9019c: [test-suite] SPEC2017 CPU CactuBSSN floating point tests. (authored by naromero77).
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95633/new/
https://reviews.llvm.org/D95633
Files:
External/SPEC/CFP2017rate/507.cactuBSSN_r/CMakeLists.txt
External/SPEC/CFP2017rate/CMakeLists.txt
External/SPEC/CFP2017speed/607.cactuBSSN_s/CMakeLists.txt
External/SPEC/CFP2017speed/CMakeLists.txt
Index: External/SPEC/CFP2017speed/CMakeLists.txt
===================================================================
--- External/SPEC/CFP2017speed/CMakeLists.txt
+++ External/SPEC/CFP2017speed/CMakeLists.txt
@@ -1,6 +1,6 @@
if (TEST_SUITE_FORTRAN)
add_subdirectory(603.bwaves_s) # Fortran
- #add_subdirectory(607.cactuBSSN_s) # C++, C, Fortran
+ add_subdirectory(607.cactuBSSN_s) # C++, C, Fortran
endif ()
add_subdirectory(619.lbm_s) # C
#add_subdirectory(621.wrf_s) # Fortran, C
Index: External/SPEC/CFP2017speed/607.cactuBSSN_s/CMakeLists.txt
===================================================================
--- /dev/null
+++ External/SPEC/CFP2017speed/607.cactuBSSN_s/CMakeLists.txt
@@ -0,0 +1,9 @@
+# https://www.spec.org/cpu2017/Docs/benchmarks/607.cactuBSSN_s.html
+include(../../SpecCPU2017.cmake)
+if (NOT TEST_SUITE_SPEC2017_ROOT)
+ return ()
+endif ()
+
+speccpu2017_benchmark(SPEED ORIGIN 507.cactuBSSN_r)
+
+speccpu2017_inherit(../../CFP2017rate/507.cactuBSSN_r)
Index: External/SPEC/CFP2017rate/CMakeLists.txt
===================================================================
--- External/SPEC/CFP2017rate/CMakeLists.txt
+++ External/SPEC/CFP2017rate/CMakeLists.txt
@@ -1,6 +1,6 @@
if (TEST_SUITE_FORTRAN)
add_subdirectory(503.bwaves_r) # Fortran
- #add_subdirectory(507.cactuBSSN_r) # C++, C, Fortran
+ add_subdirectory(507.cactuBSSN_r) # C++, C, Fortran
endif ()
add_subdirectory(508.namd_r) # C++
add_subdirectory(510.parest_r) # C++
Index: External/SPEC/CFP2017rate/507.cactuBSSN_r/CMakeLists.txt
===================================================================
--- /dev/null
+++ External/SPEC/CFP2017rate/507.cactuBSSN_r/CMakeLists.txt
@@ -0,0 +1,52 @@
+# https://www.spec.org/cpu2017/Docs/benchmarks/507.cactuBSSN_r.html
+include(../../SpecCPU2017.cmake)
+if (NOT TEST_SUITE_SPEC2017_ROOT)
+ return ()
+endif ()
+
+speccpu2017_benchmark(RATE)
+
+speccpu2017_add_include_dirs(
+ include
+)
+
+## test ########################################################################
+
+speccpu2017_run_test(
+ spec_test.par
+ WORKDIR input
+ STDOUT spec_test.out
+ RUN_TYPE test
+)
+
+
+## train #######################################################################
+
+speccpu2017_run_test(
+ spec_train.par
+ WORKDIR input
+ STDOUT spec_train.out
+ RUN_TYPE train
+)
+
+## ref #########################################################################
+
+speccpu2017_run_test(
+ spec_ref.par
+ WORKDIR input
+ STDOUT spec_ref.out
+ RUN_TYPE ref
+)
+
+################################################################################
+
+speccpu2017_verify_output(ABSOLUTE_TOLERANCE 0.0000000000005)
+speccpu2017_add_executable()
+
+# must come after speccpu2017_add_executable() which defines ${PROG} as a TARGET
+set_property(TARGET ${PROG} PROPERTY C_STANDARD 99)
+
+# Preprocessing and compiler flags depend on programming language type.
+target_compile_definitions(${PROG} PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:FCODE>)
+target_compile_definitions(${PROG} PRIVATE $<$<COMPILE_LANGUAGE:C>:CCODE>)
+target_compile_definitions(${PROG} PRIVATE $<$<COMPILE_LANGUAGE:CXX>:CCODE CCTK_DISABLE_RESTRICT=1>)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95633.321303.patch
Type: text/x-patch
Size: 3182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/0d9bb4b7/attachment.bin>
More information about the llvm-commits
mailing list