RuntimeError: parallel_for: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered

I’m trying to analyze a large graph data using RAPIDS minimum spanning tree package. When I run my code it says RuntimeError. The RAPIDS and CUDA are the latest versions.

The graph is undirected and about 27GB big. Using NVIDIA A100 80GB PCIe (4 of them)

My code:

### Convert KG2 into undirected graph

# Define column names
cols = ['subject', 'object', 'predicate']

# Load the TSV file into a cuDF DataFrame
gdf = cudf.read_csv('graph.tsv', names=cols, delimiter='t')

# Convert node identifiers to strings (if they are not already)
gdf['subject'] = gdf['subject'].astype(str)
gdf['object'] = gdf['object'].astype(str)

# Create a cuGraph Graph object
G = cugraph.Graph()

# Create the graph from the cuDF DataFrame's edgelist
G.from_cudf_edgelist(gdf, source='subject', destination='object')

# List of vertexes 
lst_nodes = ['C:7045767', 'G:0007271', 'G:0035249', 'G:0005947', 'G:0004129', 
    'C:26519', 'U:C0132173', 'G:0018393', 'G:0006979', 'H:0025464', 
    'G:0007613', 'C:64645', 'P:000010173', 'G:0014055', 'G:0061535', 
    'G:0150076', 'M:0001152', 'H:0002185', 'M:0004975', 'E:0005816', 
    'C:60425']

# Check for existing nodes in the graph
existing_nodes = G.nodes().to_pandas().tolist()
missing_nodes = set(lst_nodes) - set(existing_nodes)

# Print missing nodes
if missing_nodes:
    print(f"Some nodes in lst_nodes are not in the graph: {missing_nodes}")
else:
    print("All nodes are present in the graph.")

# Proceed with the rest of the code only if there are no missing nodes
def compute_subgraph_mst(lst_nodes):
    # Compute the MST of the entire graph
    mst = cugraph.minimum_spanning_tree(G)

    # Filter the MST to include only the subgraph with lst_nodes
    subgraph = mst[mst['src'].isin(lst_nodes) | mst['dst'].isin(lst_nodes)]

    # Convert the subgraph to an edge list
    edges = subgraph[['src', 'dst']].to_pandas().values.tolist()

    # Create a new graph from the subgraph
    subgraph_g = cugraph.Graph()
    subgraph_g.from_pandas_edgelist(pd.DataFrame(edges, columns=['src', 'dst']))

    # Compute the MST of the subgraph
    subgraph_mst = cugraph.minimum_spanning_tree(subgraph_g)
    
    return subgraph_mst

# Proceed with the rest of the code only with existing nodes
if not missing_nodes:
    subgraph_mst = compute_subgraph_mst(lst_nodes)
else:
    lst_nodes = [node for node in lst_nodes if node not in missing_nodes]
    print(f"Proceeding with nodes: {lst_nodes}")
    subgraph_mst = compute_subgraph_mst(lst_nodes)

Output:

Some nodes in lst_nodes are not in the graph: {'E:0005816', 'C:60425'}

Proceeding with nodes: ['P:7045767', 'G:0007271', 'G:0035249', 'G:0005947', 'G:0004129', 'C:26519', 'U:C0132173', 'G:0018393', 'G:0006979', 'H:0025464', 'G:0007613', 'C:64645', 'P:000010173', 'G:0014055', 'G:0061535', 'G:0150076', 'M:0001152', 'H:0002185', 'M:0004975']

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[3], line 64
     62 lst_nodes = [node for node in lst_nodes if node not in missing_nodes]
     63 print(f"Proceeding with nodes: {lst_nodes}")
---> 64 subgraph_mst = compute_subgraph_mst(lst_nodes)

Cell In[3], line 38, in compute_subgraph_mst(lst_nodes)
     36 def compute_subgraph_mst(lst_nodes):
     37     # Compute the MST of the entire graph
---> 38     mst = cugraph.minimum_spanning_tree(G)
     40     # Filter the MST to include only the subgraph with lst_nodes
     41     subgraph = mst[mst['src'].isin(lst_nodes) | mst['dst'].isin(lst_nodes)]

File /scratch/USERNAME/anaconda3/envs/rapids-24.04/lib/python3.11/site-packages/cugraph/tree/minimum_spanning_tree.py:105, in minimum_spanning_tree(G, weight, algorithm, ignore_nan)
    103     return cugraph_to_nx(mst)
    104 else:
--> 105     return _minimum_spanning_tree_subgraph(G)

File /scratch/USERNAME/anaconda3/envs/rapids-24.04/lib/python3.11/site-packages/cugraph/tree/minimum_spanning_tree.py:26, in _minimum_spanning_tree_subgraph(G)
     24 if G.is_directed():
     25     raise ValueError("input graph must be undirected")
---> 26 mst_df = minimum_spanning_tree_wrapper.minimum_spanning_tree(G)
     27 if G.renumbered:
     28     mst_df = G.unrenumber(mst_df, "src")

File minimum_spanning_tree_wrapper.pyx:71, in cugraph.tree.minimum_spanning_tree_wrapper.minimum_spanning_tree()

File minimum_spanning_tree_wrapper.pyx:52, in cugraph.tree.minimum_spanning_tree_wrapper.mst_double()

RuntimeError: parallel_for: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật