Skip to content

Instantly share code, notes, and snippets.

@mrprajesh
Last active July 24, 2021 22:08
Show Gist options
  • Save mrprajesh/cb82bb8139dd826fb35dda4e22ddeb41 to your computer and use it in GitHub Desktop.
Save mrprajesh/cb82bb8139dd826fb35dda4e22ddeb41 to your computer and use it in GitHub Desktop.
[solved]Gunrock error - terminate called after throwing an instance of ..
```
~/gunrock/build $ ./bin/sssp market ../dataset/small/test_mst.mtx
Loading Matrix-market coordinate-formatted graph ...
Reading from ../dataset/small/test_mst.mtx:
Parsing MARKET COO format (9 nodes, 17 directed edges)... Done (0 s).
Writing meta data into ../dataset/small/test_mst.mtx.meta
Writting edge pairs in binary into ../dataset/small/test_mst.mtx.coo_edge_pairs
Writting edge values in binary into ../dataset/small/test_mst.mtx.coo_edge_values
Substracting 1 from node Ids...
graph loaded as COO in 0.038475s.
Converting 9 vertices, 17 directed edges ( ordered tuples) to CSR format...Done (0s).
Degree Histogram (9 vertices, 17 edges):
Degree 0: 1 (11.111111 %)
Degree 2^0: 3 (33.333333 %)
Degree 2^1: 4 (44.444444 %)
Degree 2^2: 1 (11.111111 %)
Computing reference value ...
__________________________
--------------------------
Run 0 elapsed: 0.002146 ms, src = 0
==============================================
64bit-VertexT=false 64bit-SizeT=false 64bit-ValueT=false undirected=false mark-pred=0 advance-mode=LB
Using advance mode LB
Using filter mode CULL
terminate called after throwing an instance of 'mgpu::cuda_exception_t'
what(): invalid device function
Aborted (core dumped)
```
@mrprajesh
Copy link
Author

mrprajesh commented Jul 24, 2021

I had set CUDA_VISIBLE_DEVICES=1.
Somehow gunrock/mgpu sees and can run only from GPU0
so I have to change to GPU0 before running. 😮

CUDA_VISIBLE_DEVICES=0
export $CUDA_VISIBLE_DEVICES

Alternative, they say it as fixed similar error. here gunrock/gunrock#169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment