gunrock: Tests fail

Hello. I’ve build Gunrock according to instruction; saw no warnings or errors. However, tests fail. Running “ctest -v” shows this:

Test project /home/alex/gunrock/build
      Start  1: TEST_BFS
 1/11 Test  #1: TEST_BFS .........................***Exception: SegFault  0.14 sec
      Start  2: TEST_BC
 2/11 Test  #2: TEST_BC ..........................***Exception: SegFault  0.11 sec
      Start  3: TEST_CC
 3/11 Test  #3: TEST_CC ..........................***Exception: SegFault  0.09 sec
      Start  4: TEST_SSSP
 4/11 Test  #4: TEST_SSSP ........................***Exception: SegFault  0.09 sec
      Start  5: TEST_PAGERANK
 5/11 Test  #5: TEST_PAGERANK ....................***Exception: SegFault  0.09 sec
      Start  6: TEST_TOPK
 6/11 Test  #6: TEST_TOPK ........................***Exception: SegFault  0.09 sec
      Start  7: SHARED_LIB_TEST_BFS
 7/11 Test  #7: SHARED_LIB_TEST_BFS ..............   Passed    0.07 sec
      Start  8: SHARED_LIB_TEST_BC
 8/11 Test  #8: SHARED_LIB_TEST_BC ...............   Passed    0.06 sec
      Start  9: SHARED_LIB_TEST_CC
 9/11 Test  #9: SHARED_LIB_TEST_CC ...............   Passed    0.06 sec
      Start 10: SHARED_LIB_TEST_SSSP
10/11 Test #10: SHARED_LIB_TEST_SSSP .............   Passed    0.06 sec
      Start 11: SHARED_LIB_TEST_PAGERANK
11/11 Test #11: SHARED_LIB_TEST_PAGERANK .........   Passed    0.06 sec

45% tests passed, 6 tests failed out of 11

Total Test time (real) =   0.92 sec

The following tests FAILED:
	  1 - TEST_BFS (SEGFAULT)
	  2 - TEST_BC (SEGFAULT)
	  3 - TEST_CC (SEGFAULT)
	  4 - TEST_SSSP (SEGFAULT)
	  5 - TEST_PAGERANK (SEGFAULT)
	  6 - TEST_TOPK (SEGFAULT)

LastTest.log looks like this:

Start testing: May 05 21:42 MSK
----------------------------------------------------------
1/11 Testing: TEST_BFS
1/11 Test: TEST_BFS
Command: "/home/alex/gunrock/build/bin/bfs" "market" "/home/alex/gunrock/simple_example/bips98_606.mtx" "--undirected" "--src=0"
Directory: /home/alex/gunrock/build
"TEST_BFS" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
<end of output>
Test time =   0.14 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[CORRECT
]
"TEST_BFS" end time: May 05 21:42 MSK
"TEST_BFS" time elapsed: 00:00:00
----------------------------------------------------------

2/11 Testing: TEST_BC
2/11 Test: TEST_BC
Command: "/home/alex/gunrock/build/bin/bc" "market" "/home/alex/gunrock/simple_example/bips98_606.mtx" "--undirected" "--src=0"
Directory: /home/alex/gunrock/build
"TEST_BC" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
<end of output>
Test time =   0.11 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[CORRECT
]
"TEST_BC" end time: May 05 21:42 MSK
"TEST_BC" time elapsed: 00:00:00
----------------------------------------------------------

3/11 Testing: TEST_CC
3/11 Test: TEST_CC
Command: "/home/alex/gunrock/build/bin/cc" "market" "/home/alex/gunrock/simple_example/bips98_606.mtx"
Directory: /home/alex/gunrock/build
"TEST_CC" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
<end of output>
Test time =   0.09 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[CORRECT
]
"TEST_CC" end time: May 05 21:42 MSK
"TEST_CC" time elapsed: 00:00:00
----------------------------------------------------------

4/11 Testing: TEST_SSSP
4/11 Test: TEST_SSSP
Command: "/home/alex/gunrock/build/bin/sssp" "market" "/home/alex/gunrock/dataset/small/chesapeake.mtx" "--undirected" "--src=0"
Directory: /home/alex/gunrock/build
"TEST_SSSP" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
<end of output>
Test time =   0.09 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[CORRECT
]
"TEST_SSSP" end time: May 05 21:42 MSK
"TEST_SSSP" time elapsed: 00:00:00
----------------------------------------------------------

5/11 Testing: TEST_PAGERANK
5/11 Test: TEST_PAGERANK
Command: "/home/alex/gunrock/build/bin/pr" "market" "/home/alex/gunrock/simple_example/bips98_606.mtx" "--undirected"
Directory: /home/alex/gunrock/build
"TEST_PAGERANK" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
<end of output>
Test time =   0.09 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[CORRECT
]
"TEST_PAGERANK" end time: May 05 21:42 MSK
"TEST_PAGERANK" time elapsed: 00:00:00
----------------------------------------------------------

6/11 Testing: TEST_TOPK
6/11 Test: TEST_TOPK
Command: "/home/alex/gunrock/build/bin/topk" "market" "/home/alex/gunrock/simple_example/bips98_606.mtx" "--undirected"
Directory: /home/alex/gunrock/build
"TEST_TOPK" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
<end of output>
Test time =   0.09 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[CORRECT
]
"TEST_TOPK" end time: May 05 21:42 MSK
"TEST_TOPK" time elapsed: 00:00:00
----------------------------------------------------------

7/11 Testing: SHARED_LIB_TEST_BFS
7/11 Test: SHARED_LIB_TEST_BFS
Command: "/home/alex/gunrock/build/bin/shared_lib_bfs"
Directory: /home/alex/gunrock/build
"SHARED_LIB_TEST_BFS" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
Round 1 of bfs.
Round 2 of bfs.
Round 3 of bfs.
Node_ID [0] : Label [2147483647]
Node_ID [1] : Label [2147483647]
Node_ID [2] : Label [0]
Node_ID [3] : Label [2147483647]
Node_ID [4] : Label [2147483647]
Node_ID [5] : Label [2147483647]
Node_ID [6] : Label [2147483647]
<end of output>
Test time =   0.07 sec
----------------------------------------------------------
Test Pass Reason:
Required regular expression found.Regex=[Node_ID.*2.*: Label.*1
]
"SHARED_LIB_TEST_BFS" end time: May 05 21:42 MSK
"SHARED_LIB_TEST_BFS" time elapsed: 00:00:00
----------------------------------------------------------

8/11 Testing: SHARED_LIB_TEST_BC
8/11 Test: SHARED_LIB_TEST_BC
Command: "/home/alex/gunrock/build/bin/shared_lib_bc"
Directory: /home/alex/gunrock/build
"SHARED_LIB_TEST_BC" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
0	 1	 0	 queue3 	 oversize :	 9 ->	 14
Node_ID [0] : Score [0.0000]
Node_ID [1] : Score [0.2500]
Node_ID [2] : Score [0.5000]
Node_ID [3] : Score [0.7500]
Node_ID [4] : Score [0.0000]
Node_ID [5] : Score [0.0000]
Node_ID [6] : Score [0.0000]
<end of output>
Test time =   0.06 sec
----------------------------------------------------------
Test Pass Reason:
Required regular expression found.Regex=[Node_ID.*0.*: Score.*0.5000
]
"SHARED_LIB_TEST_BC" end time: May 05 21:42 MSK
"SHARED_LIB_TEST_BC" time elapsed: 00:00:00
----------------------------------------------------------

9/11 Testing: SHARED_LIB_TEST_CC
9/11 Test: SHARED_LIB_TEST_CC
Command: "/home/alex/gunrock/build/bin/shared_lib_cc"
Directory: /home/alex/gunrock/build
"SHARED_LIB_TEST_CC" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
Node_ID [0] : Component_ID [0]
Node_ID [1] : Component_ID [0]
Node_ID [2] : Component_ID [0]
Node_ID [3] : Component_ID [0]
Node_ID [4] : Component_ID [0]
Node_ID [5] : Component_ID [0]
Node_ID [6] : Component_ID [0]
<end of output>
Test time =   0.06 sec
----------------------------------------------------------
Test Pass Reason:
Required regular expression found.Regex=[Node_ID.*1.*: Component.*0
]
"SHARED_LIB_TEST_CC" end time: May 05 21:42 MSK
"SHARED_LIB_TEST_CC" time elapsed: 00:00:00
----------------------------------------------------------

10/11 Testing: SHARED_LIB_TEST_SSSP
10/11 Test: SHARED_LIB_TEST_SSSP
Command: "/home/alex/gunrock/build/bin/shared_lib_sssp"
Directory: /home/alex/gunrock/build
"SHARED_LIB_TEST_SSSP" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
Round 1 of sssp.
0	 2	 0	 queue3 	 oversize :	 10 ->	 11
Node_ID [0] : Label [0]
Node_ID [1] : Label [39]
Node_ID [2] : Label [6]
Node_ID [3] : Label [16]
Node_ID [4] : Label [50]
Node_ID [5] : Label [29]
Node_ID [6] : Label [64]
<end of output>
Test time =   0.06 sec
----------------------------------------------------------
Test Pass Reason:
Required regular expression found.Regex=[Node_ID.*1.*: Label.*39.*
]
"SHARED_LIB_TEST_SSSP" end time: May 05 21:42 MSK
"SHARED_LIB_TEST_SSSP" time elapsed: 00:00:00
----------------------------------------------------------

11/11 Testing: SHARED_LIB_TEST_PAGERANK
11/11 Test: SHARED_LIB_TEST_PAGERANK
Command: "/home/alex/gunrock/build/bin/shared_lib_pr"
Directory: /home/alex/gunrock/build
"SHARED_LIB_TEST_PAGERANK" start time: May 05 21:42 MSK
Output:
----------------------------------------------------------
Node_ID [0] : Score: [0.266484]
Node_ID [0] : Score: [0.266484]
Node_ID [0] : Score: [0.248649]
Node_ID [0] : Score: [0.255224]
Node_ID [0] : Score: [0.255225]
Node_ID [0] : Score: [0.253251]
Node_ID [0] : Score: [0.264598]
Node_ID [0] : Score: [0.000000]
Node_ID [0] : Score: [0.000000]
Node_ID [0] : Score: [0.000000]
<end of output>
Test time =   0.06 sec
----------------------------------------------------------
Test Pass Reason:
Required regular expression found.Regex=[Node_ID.*2.*: Score.*1.2*
]
"SHARED_LIB_TEST_PAGERANK" end time: May 05 21:42 MSK
"SHARED_LIB_TEST_PAGERANK" time elapsed: 00:00:00
----------------------------------------------------------

End testing: May 05 21:42 MSK

I’ve tried building with cmake 3.5.2 and cmake 3.8.1 - no difference. Also, I’ve tried running just one test like this:

/home/alex/gunrock/build/bin/bfs market /home/alex/gunrock/simple_example/bips98_606.mtx --undirected --device=0 --src=0

and got this:

Loading Matrix-market coordinate-formatted graph ...
Segmentation fault (core dumped)

My system is Ubuntu 16.10, gcc and g++ are 4.9, and nvcc is 8.0. My GPU is GTX 660.

Could you please help me, or point me in some direction?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 43 (28 by maintainers)

Commits related to this issue

Most upvoted comments

You can write anything you want at the end of your application. For instance, in bfs_test.cuh (https://github.com/gunrock/gunrock/blob/master/gunrock/app/bfs/bfs_test.cuh), take a look at Validate_Results and its call to DisplaySolution; you can just change the latter to output whatever you want.