[llvm-bugs] [Bug 50024] New: Dataset configure in CMakeLists.txt of MultiSource/Applications/viterbi is not correct when small_problem_size is enable

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 19 03:39:21 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50024

            Bug ID: 50024
           Summary: Dataset configure in CMakeLists.txt of
                    MultiSource/Applications/viterbi is not correct when
                    small_problem_size is enable
           Product: Test Suite
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Programs Tests
          Assignee: unassignedbugs at nondot.org
          Reporter: zixuan.wu at linux.alibaba.com
                CC: llvm-bugs at lists.llvm.org

When SMALL_PROBLEM_SIZE is enable, the dataset should be small one. Following
diff is needed.

diff --git a/MultiSource/Applications/viterbi/CMakeLists.txt
b/MultiSource/Applications/viterbi/CMakeLists.txt
index 7c5adf3..dd71ba4 100644
--- a/MultiSource/Applications/viterbi/CMakeLists.txt
+++ b/MultiSource/Applications/viterbi/CMakeLists.txt
@@ -1,3 +1,8 @@
 list(APPEND CPPFLAGS -I${CMAKE_CURRENT_SOURCE_DIR} -DPROJ_SRC_DIR=".")
+if(SMALL_PROBLEM_SIZE)
+  set(INPUTS Dist_demux_small)
+else()
+  set(INPUTS Dist_demux)
+endif()
 llvm_multisource(viterbi)
-llvm_test_data(viterbi Dist_demux)
+llvm_test_data(viterbi ${INPUTS})

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210419/45ae4af2/attachment.html>


More information about the llvm-bugs mailing list